From c70d265a591fc0c9125f4f638482643aec1b3234 Mon Sep 17 00:00:00 2001 From: pgen Date: Thu, 27 Jul 2023 23:04:24 +0200 Subject: Add some tests in tests/initial_selection --- tests/initial_selection/t0010.good | 11 +++++++++++ tests/initial_selection/t0010.in | 1 + tests/initial_selection/t0010.tst | 4 ++++ tests/initial_selection/t0011.good | 11 +++++++++++ tests/initial_selection/t0011.in | 1 + tests/initial_selection/t0011.tst | 4 ++++ tests/initial_selection/t0012.good | 11 +++++++++++ tests/initial_selection/t0012.in | 1 + tests/initial_selection/t0012.tst | 4 ++++ 9 files changed, 48 insertions(+) create mode 100644 tests/initial_selection/t0010.good create mode 120000 tests/initial_selection/t0010.in create mode 100644 tests/initial_selection/t0010.tst create mode 100644 tests/initial_selection/t0011.good create mode 120000 tests/initial_selection/t0011.in create mode 100644 tests/initial_selection/t0011.tst create mode 100644 tests/initial_selection/t0012.good create mode 120000 tests/initial_selection/t0012.in create mode 100644 tests/initial_selection/t0012.tst (limited to 'tests') 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 -- cgit v1.2.3