summaryrefslogtreecommitdiffstats
path: root/tests/gutter
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-05-11 15:52:00 +0200
committerpgen <p.gen.progs@gmail.com>2018-05-11 17:37:28 +0200
commitb1dcb7e0487b48eedd140385428ae8dafd5ec564 (patch)
tree010edc40219b63f3867857370ed62c425f15bded /tests/gutter
parent95c9eb53593c554ff443cb94a220062b6e36bb31 (diff)
Add the first roll of an automated testing system.
Diffstat (limited to 'tests/gutter')
-rw-r--r--tests/gutter/data13
-rw-r--r--tests/gutter/data21
-rw-r--r--tests/gutter/t0001.good11
l---------tests/gutter/t0001.in1
-rw-r--r--tests/gutter/t0001.tst4
-rw-r--r--tests/gutter/t0002.good15
l---------tests/gutter/t0002.in1
-rw-r--r--tests/gutter/t0002.tst4
-rw-r--r--tests/gutter/t0003.good15
l---------tests/gutter/t0003.in1
-rw-r--r--tests/gutter/t0003.tst4
-rw-r--r--tests/gutter/t0004.good11
l---------tests/gutter/t0004.in1
-rw-r--r--tests/gutter/t0004.tst4
-rw-r--r--tests/gutter/t0005.good11
l---------tests/gutter/t0005.in1
-rw-r--r--tests/gutter/t0005.tst4
17 files changed, 92 insertions, 0 deletions
diff --git a/tests/gutter/data1 b/tests/gutter/data1
new file mode 100644
index 0000000..b7becd9
--- /dev/null
+++ b/tests/gutter/data1
@@ -0,0 +1,3 @@
+1 2 3 4 5
+6 7 8
+9 10 11 12 13 14
diff --git a/tests/gutter/data2 b/tests/gutter/data2
new file mode 100644
index 0000000..d89f7a2
--- /dev/null
+++ b/tests/gutter/data2
@@ -0,0 +1 @@
+abcd efgh ijkl mnop qrst vwxy zabc defg hijk lmno pqrs tuvw xyza bcde efgh jklm nopq rstu vwxy
diff --git a/tests/gutter/t0001.good b/tests/gutter/t0001.good
new file mode 100644
index 0000000..a13ac4a
--- /dev/null
+++ b/tests/gutter/t0001.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -t -g -- t0001.in)
+
+1 │2 │3 │4 │5 │6 │7 │8 │9 │10│11│12│13│14
+0:07 1:07
+$
+
+$ echo ":$OUT:"
+
+:1:
+
+$ exit 0
diff --git a/tests/gutter/t0001.in b/tests/gutter/t0001.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/gutter/t0001.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/gutter/t0001.tst b/tests/gutter/t0001.tst
new file mode 100644
index 0000000..fa0eff9
--- /dev/null
+++ b/tests/gutter/t0001.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -t -g -- t0001.in)
+\S[100]\s[120]\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/gutter/t0002.good b/tests/gutter/t0002.good
new file mode 100644
index 0000000..da7a05d
--- /dev/null
+++ b/tests/gutter/t0002.good
@@ -0,0 +1,15 @@
+$ OUT=$(smenu -c -g -- t0002.in)
+
+1│2 │3 │4 │5
+0:07
+6│7 │8
+
+9│10│11│12│13│14
+
+$
+
+$ echo ":$OUT:"
+
+:1:
+
+$ exit 0
diff --git a/tests/gutter/t0002.in b/tests/gutter/t0002.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/gutter/t0002.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/gutter/t0002.tst b/tests/gutter/t0002.tst
new file mode 100644
index 0000000..dd4a35d
--- /dev/null
+++ b/tests/gutter/t0002.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -c -g -- t0002.in)
+\S[100]\s[120]\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/gutter/t0003.good b/tests/gutter/t0003.good
new file mode 100644
index 0000000..598392c
--- /dev/null
+++ b/tests/gutter/t0003.good
@@ -0,0 +1,15 @@
+$ OUT=$(smenu -c -g '\ue29483\ue29db1\uF09D8481 ' t0003.in)
+
+1┃2 ❱3 𝄁4 5
+0:07
+6┃7 ❱8
+
+9┃10❱11𝄁12 13 14
+
+$
+
+$ echo ":$OUT:"
+
+:1:
+
+$ exit 0
diff --git a/tests/gutter/t0003.in b/tests/gutter/t0003.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/gutter/t0003.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/gutter/t0003.tst b/tests/gutter/t0003.tst
new file mode 100644
index 0000000..264fba4
--- /dev/null
+++ b/tests/gutter/t0003.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -c -g '\\ue29483\\ue29db1\\uF09D8481 ' t0003.in)
+\S[100]\s[120]\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/gutter/t0004.good b/tests/gutter/t0004.good
new file mode 100644
index 0000000..aa18182
--- /dev/null
+++ b/tests/gutter/t0004.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -c -g '|: ' t0004.in)
+
+←efgh:ijkl mnop qrst vwxy zabc defg hijk lmno pqrs tuvw xyza bcde efgh jklm→
+0:01 1:07 2:07 3:07 4:07 75:01
+$
+
+$ echo ":$OUT:"
+
+:efgh:
+
+$ exit 0
diff --git a/tests/gutter/t0004.in b/tests/gutter/t0004.in
new file mode 120000
index 0000000..fee93d1
--- /dev/null
+++ b/tests/gutter/t0004.in
@@ -0,0 +1 @@
+data2 \ No newline at end of file
diff --git a/tests/gutter/t0004.tst b/tests/gutter/t0004.tst
new file mode 100644
index 0000000..b4e9597
--- /dev/null
+++ b/tests/gutter/t0004.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -c -g '|: ' t0004.in)
+\S[100]\s[120]lllllllllllllllhhhhhhhhhhhhhh\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/gutter/t0005.good b/tests/gutter/t0005.good
new file mode 100644
index 0000000..dccedc8
--- /dev/null
+++ b/tests/gutter/t0005.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -c -g '|: ' t0005.in)
+
+ abcd|efgh:ijkl mnop qrst vwxy zabc defg hijk lmno pqrs tuvw xyza bcde efgh→
+0:01 1:07 2:07 3:07 4:07 75:01
+$
+
+$ echo ":$OUT:"
+
+:abcd:
+
+$ exit 0
diff --git a/tests/gutter/t0005.in b/tests/gutter/t0005.in
new file mode 120000
index 0000000..fee93d1
--- /dev/null
+++ b/tests/gutter/t0005.in
@@ -0,0 +1 @@
+data2 \ No newline at end of file
diff --git a/tests/gutter/t0005.tst b/tests/gutter/t0005.tst
new file mode 100644
index 0000000..fdffbd2
--- /dev/null
+++ b/tests/gutter/t0005.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -c -g '|: ' t0005.in)
+\S[100]\s[120]lllllllllllllllhhhhhhhhhhhhhhh\r
+\s[0]echo ":$OUT:"
+exit 0