summaryrefslogtreecommitdiffstats
path: root/tests/long_words
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/long_words
parent95c9eb53593c554ff443cb94a220062b6e36bb31 (diff)
Add the first roll of an automated testing system.
Diffstat (limited to 'tests/long_words')
-rw-r--r--tests/long_words/data130
-rw-r--r--tests/long_words/t0001.good29
l---------tests/long_words/t0001.in1
-rw-r--r--tests/long_words/t0001.tst4
-rw-r--r--tests/long_words/t0002.good29
l---------tests/long_words/t0002.in1
-rw-r--r--tests/long_words/t0002.tst4
-rw-r--r--tests/long_words/t0003.good29
l---------tests/long_words/t0003.in1
-rw-r--r--tests/long_words/t0003.tst9
-rw-r--r--tests/long_words/t0004.good29
l---------tests/long_words/t0004.in1
-rw-r--r--tests/long_words/t0004.tst9
13 files changed, 176 insertions, 0 deletions
diff --git a/tests/long_words/data1 b/tests/long_words/data1
new file mode 100644
index 0000000..9b2a333
--- /dev/null
+++ b/tests/long_words/data1
@@ -0,0 +1,30 @@
+1
+12
+123
+1234
+12345
+123456
+1234567
+12345678
+123456789
+1234567890
+12345678901
+123456789012
+1234567890123
+12345678901234
+123456789012345
+1234567890123456
+12345678901234567
+123456789012345678
+1234567890123456789
+12345678901234567890
+123456789012345678901
+1234567890123456789012
+12345678901234567890123
+123456789012345678901234
+1234567890123456789012345
+12345678901234567890123456
+123456789012345678901234567
+1234567890123456789012345678
+12345678901234567890123456789
+123456789012345678901234567890
diff --git a/tests/long_words/t0001.good b/tests/long_words/t0001.good
new file mode 100644
index 0000000..0c4588e
--- /dev/null
+++ b/tests/long_words/t0001.good
@@ -0,0 +1,29 @@
+$ OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 3 t0001.in)
+
+123456789 1234567890 ▲
+63:20
+12345678901 123456789012 │
+63:20
+1234567890123 12345678901234 │
+63:20
+123456789012345 1234567890123456 │
+63:20
+12345678901234567 123456789012345678 │
+63:20
+1234567890123456789 12345678901234567890 │
+63:20
+123456789012345678901 1234567890123456789012 ║
+63:20
+12345678901234567890123 123456789012345678901234 │
+0:07 1:07 2:07 3:07 4:07 5:07 6:07 7:07 8:07 9:07 10:07 11:07 12:07 13:07 14:07 15:07 16:07 17:07 18:07 19:07 20:07 21:07 22:07 23:07 24:07 25:07 26:07 27:07 28:07 29:07 63:20
+1234567890123456789012345 12345678901234567890123456 │
+63:20
+123456789012345678901234567 1234567890123456789012345678 ▼
+63:20
+$
+
+$ echo ":$OUT:"
+
+:12345678901234567890123:
+
+$ exit 0
diff --git a/tests/long_words/t0001.in b/tests/long_words/t0001.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/long_words/t0001.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/long_words/t0001.tst b/tests/long_words/t0001.tst
new file mode 100644
index 0000000..df699f2
--- /dev/null
+++ b/tests/long_words/t0001.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 3 t0001.in)
+\S[100]\s[120]lljlljlljllkkkhhjjlljjllljjjjkkh\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/long_words/t0002.good b/tests/long_words/t0002.good
new file mode 100644
index 0000000..12d3ea8
--- /dev/null
+++ b/tests/long_words/t0002.good
@@ -0,0 +1,29 @@
+$ OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 t0002.in)
+
+12345678901 ▲
+32:20
+123456789012 │
+32:20
+1234567890123 │
+32:20
+12345678901234 │
+32:20
+123456789012345 │
+32:20
+1234567890123456 ║
+32:20
+12345678901234567 │
+0:07 1:07 2:07 3:07 4:07 5:07 6:07 7:07 8:07 9:07 10:07 11:07 12:07 13:07 14:07 15:07 16:07 17:07 18:07 19:07 20:07 21:07 22:07 23:07 24:07 25:07 26:07 27:07 28:07 29:07 32:20
+123456789012345678 │
+32:20
+1234567890123456789 │
+32:20
+12345678901234567890 ▼
+32:20
+$
+
+$ echo ":$OUT:"
+
+:12345678901234567:
+
+$ exit 0
diff --git a/tests/long_words/t0002.in b/tests/long_words/t0002.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/long_words/t0002.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/long_words/t0002.tst b/tests/long_words/t0002.tst
new file mode 100644
index 0000000..44a0976
--- /dev/null
+++ b/tests/long_words/t0002.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 t0002.in)
+\S[100]\s[120]lljlljlljllkkkhhjjlljjllljjjjkkh\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/long_words/t0003.good b/tests/long_words/t0003.good
new file mode 100644
index 0000000..2637e50
--- /dev/null
+++ b/tests/long_words/t0003.good
@@ -0,0 +1,29 @@
+$ OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 t0003.in)
+
+1234567890123 ▲
+23:20
+12345678901234 │
+23:20
+123456789012345 │
+23:20
+1234567890123456 │
+23:20
+12345678901234567 │
+0:07 1:07 2:07 3:07 4:07 5:07 6:07 7:07 8:07 9:07 10:07 11:07 12:07 13:07 14:07 15:07 16:07 17:07 18:07 19:07 23:20
+123456789012345678 ║
+23:20
+1234567890123456789 │
+23:20
+12345678901234567890 │
+23:20
+12345678901234567890 │
+23:20
+12345678901234567890 ▼
+23:20
+$
+
+$ echo ":$OUT:"
+
+:12345678901234567:
+
+$ exit 0
diff --git a/tests/long_words/t0003.in b/tests/long_words/t0003.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/long_words/t0003.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/long_words/t0003.tst b/tests/long_words/t0003.tst
new file mode 100644
index 0000000..dd903a3
--- /dev/null
+++ b/tests/long_words/t0003.tst
@@ -0,0 +1,9 @@
+\S[10]OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 t0003.in)
+\S[100]\s[120]lljlljlljllkkkhhjjlljjllljjjjkkh\
+\W[22x24]\s[1200]\
+\W[21x24]\s[1200]\
+\W[20x24]\s[1200]\
+\W[22x24]\s[1200]\
+\W[24x24]\s[1200]\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/long_words/t0004.good b/tests/long_words/t0004.good
new file mode 100644
index 0000000..be644a1
--- /dev/null
+++ b/tests/long_words/t0004.good
@@ -0,0 +1,29 @@
+$ OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 -N. -- t0004.in)
+
+ 13) 1234567890123 ▲
+0:01 1:01 2:01 3:01 23:20
+ 14) 12345678901234 │
+0:01 1:01 2:01 3:01 23:20
+ 15) 123456789012345 │
+0:01 1:01 2:01 3:01 23:20
+ 16) 123456789012345 │
+0:01 1:01 2:01 3:01 23:20
+ 17) 123456789012345 │
+0:01 1:01 2:01 3:01 5:07 6:07 7:07 8:07 9:07 10:07 11:07 12:07 13:07 14:07 15:07 16:07 17:07 18:07 19:07 23:20
+ 18) 123456789012345 ║
+0:01 1:01 2:01 3:01 23:20
+ 19) 123456789012345 │
+0:01 1:01 2:01 3:01 23:20
+ 20) 123456789012345 │
+0:01 1:01 2:01 3:01 23:20
+ 21) 123456789012345 │
+0:01 1:01 2:01 3:01 23:20
+ 22) 123456789012345 ▼
+0:01 1:01 2:01 3:01 23:20
+$
+
+$ echo ":$OUT:"
+
+:12345678901234567:
+
+$ exit 0
diff --git a/tests/long_words/t0004.in b/tests/long_words/t0004.in
new file mode 120000
index 0000000..0abc8f1
--- /dev/null
+++ b/tests/long_words/t0004.in
@@ -0,0 +1 @@
+data1 \ No newline at end of file
diff --git a/tests/long_words/t0004.tst b/tests/long_words/t0004.tst
new file mode 100644
index 0000000..7254ff2
--- /dev/null
+++ b/tests/long_words/t0004.tst
@@ -0,0 +1,9 @@
+\S[10]OUT=$(LC_ALL=en_US.UTF-8 smenu -n 10 -t 1 -N. -- t0004.in)
+\S[100]\s[120]lljlljlljllkkkhhjjlljjllljjjjkkh\
+\W[22x24]\s[1200]\
+\W[21x24]\s[1200]\
+\W[20x24]\s[1200]\
+\W[22x24]\s[1200]\
+\W[24x24]\s[1200]\r
+\s[0]echo ":$OUT:"
+exit 0