summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-07-27 23:04:24 +0200
committerpgen <p.gen.progs@gmail.com>2023-07-27 23:04:24 +0200
commitc70d265a591fc0c9125f4f638482643aec1b3234 (patch)
tree193b72ae071558d0509533aec5d52607b02dadea /tests
parentd3ba8284ee89bd3abfc397dd182420392c6fb9c2 (diff)
Add some tests in tests/initial_selection
Diffstat (limited to 'tests')
-rw-r--r--tests/initial_selection/t0010.good11
l---------tests/initial_selection/t0010.in1
-rw-r--r--tests/initial_selection/t0010.tst4
-rw-r--r--tests/initial_selection/t0011.good11
l---------tests/initial_selection/t0011.in1
-rw-r--r--tests/initial_selection/t0011.tst4
-rw-r--r--tests/initial_selection/t0012.good11
l---------tests/initial_selection/t0012.in1
-rw-r--r--tests/initial_selection/t0012.tst4
9 files changed, 48 insertions, 0 deletions
diff --git a/tests/initial_selection/t0010.good b/tests/initial_selection/t0010.good
new file mode 100644
index 0000000..bcac845
--- /dev/null
+++ b/tests/initial_selection/t0010.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -s/ba t0010.in)
+
+aab abb aa ab ba bb aba bab aaa
+20:07 21:07 22:07
+$
+
+$ echo ":$OUT:"
+
+:aba:
+
+$ exit 0
diff --git a/tests/initial_selection/t0010.in b/tests/initial_selection/t0010.in
new file mode 120000
index 0000000..fee93d1
--- /dev/null
+++ b/tests/initial_selection/t0010.in
@@ -0,0 +1 @@
+data2 \ No newline at end of file
diff --git a/tests/initial_selection/t0010.tst b/tests/initial_selection/t0010.tst
new file mode 100644
index 0000000..e59b6e4
--- /dev/null
+++ b/tests/initial_selection/t0010.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -s/ba t0010.in)
+\S[150]\s[50]n\s[50]n\s[50]N\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/initial_selection/t0011.good b/tests/initial_selection/t0011.good
new file mode 100644
index 0000000..90e0677
--- /dev/null
+++ b/tests/initial_selection/t0011.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -s ba t0011.in)
+
+aab abb aa ab ba bb aba bab aaa
+24:07 25:07 26:07
+$
+
+$ echo ":$OUT:"
+
+:bab:
+
+$ exit 0
diff --git a/tests/initial_selection/t0011.in b/tests/initial_selection/t0011.in
new file mode 120000
index 0000000..fee93d1
--- /dev/null
+++ b/tests/initial_selection/t0011.in
@@ -0,0 +1 @@
+data2 \ No newline at end of file
diff --git a/tests/initial_selection/t0011.tst b/tests/initial_selection/t0011.tst
new file mode 100644
index 0000000..dac70ca
--- /dev/null
+++ b/tests/initial_selection/t0011.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -s ba t0011.in)
+\S[150]\s[50]n\s[50]N\s[50]n\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/initial_selection/t0012.good b/tests/initial_selection/t0012.good
new file mode 100644
index 0000000..92476f7
--- /dev/null
+++ b/tests/initial_selection/t0012.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu -T -s/ba t0012.in)
+
+aab abb aa ab ba bb aba bab aaa
+14:04 15:04 20:0407 21:0407 22:0407 24:04 25:04 26:04
+$
+
+$ echo ":$OUT:"
+
+:ba aba bab:
+
+$ exit 0
diff --git a/tests/initial_selection/t0012.in b/tests/initial_selection/t0012.in
new file mode 120000
index 0000000..fee93d1
--- /dev/null
+++ b/tests/initial_selection/t0012.in
@@ -0,0 +1 @@
+data2 \ No newline at end of file
diff --git a/tests/initial_selection/t0012.tst b/tests/initial_selection/t0012.tst
new file mode 100644
index 0000000..b349198
--- /dev/null
+++ b/tests/initial_selection/t0012.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -T -s/ba t0012.in)
+\S[150]\s[50]n\s[50]n\s[50]NT\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0