diff options
author | pgen <p.gen.progs@gmail.com> | 2018-07-08 13:32:18 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2018-07-11 22:30:43 +0200 |
commit | 4dfb28872bc0a0cc26ec79653bd4a0da9722825d (patch) | |
tree | 1e8e4373f3c082e47909f73b419067c8975d4031 /tests/search | |
parent | 48b2acea6f58b05a8042a93cde227e1b05aa6964 (diff) |
add some tests
Diffstat (limited to 'tests/search')
-rw-r--r-- | tests/search/t0008.good | 11 | ||||
-rw-r--r-- | tests/search/t0009.good | 11 | ||||
l--------- | tests/search/t0009.in | 1 | ||||
-rw-r--r-- | tests/search/t0009.tst | 4 | ||||
-rw-r--r-- | tests/search/t0010.good | 11 | ||||
l--------- | tests/search/t0010.in | 1 | ||||
-rw-r--r-- | tests/search/t0010.tst | 4 | ||||
-rw-r--r-- | tests/search/t0011.good | 11 | ||||
l--------- | tests/search/t0011.in | 1 | ||||
-rw-r--r-- | tests/search/t0011.tst | 4 |
10 files changed, 59 insertions, 0 deletions
diff --git a/tests/search/t0008.good b/tests/search/t0008.good new file mode 100644 index 0000000..47758b7 --- /dev/null +++ b/tests/search/t0008.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu t0008.in) + +abc ab ab abcabc bca ba bac +21:0723 22:0723 24:23 25:23 +$ + +$ echo ":$OUT:" + +:ba: + +$ exit 0 diff --git a/tests/search/t0009.good b/tests/search/t0009.good new file mode 100644 index 0000000..fe7cdd4 --- /dev/null +++ b/tests/search/t0009.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu t0009.in) + +abc ab ab abcabc bca ba bac +10:071f 11:071f 12:071f 13:071f 14:071f 15:071f +$ + +$ echo ":$OUT:" + +:abcabc: + +$ exit 0 diff --git a/tests/search/t0009.in b/tests/search/t0009.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/search/t0009.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/search/t0009.tst b/tests/search/t0009.tst new file mode 100644 index 0000000..71995e6 --- /dev/null +++ b/tests/search/t0009.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu t0009.in) +\S[100]\s[120]/abcxabc\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0010.good b/tests/search/t0010.good new file mode 100644 index 0000000..b73c567 --- /dev/null +++ b/tests/search/t0010.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu t0010.in) + +abc ab ab abcabc bca ba bac +0:071f 1:07 2:071f 10:1f 12:1f 25:1f 26:1f +$ + +$ echo ":$OUT:" + +:abc: + +$ exit 0 diff --git a/tests/search/t0010.in b/tests/search/t0010.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/search/t0010.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/search/t0010.tst b/tests/search/t0010.tst new file mode 100644 index 0000000..b6ae3d1 --- /dev/null +++ b/tests/search/t0010.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu t0010.in) +\S[100]\s[120]/axc\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0011.good b/tests/search/t0011.good new file mode 100644 index 0000000..1ff81d0 --- /dev/null +++ b/tests/search/t0011.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu t0011.in) + +abc ab ab abcabc bca ba bac +0:0723 1:07 2:07 4:23 7:23 10:23 19:23 22:23 25:23 +$ + +$ echo ":$OUT:" + +:abc: + +$ exit 0 diff --git a/tests/search/t0011.in b/tests/search/t0011.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/search/t0011.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/search/t0011.tst b/tests/search/t0011.tst new file mode 100644 index 0000000..d2ab5c6 --- /dev/null +++ b/tests/search/t0011.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu t0011.in) +\S[100]\s[120]/axc\b\r\r +\s[0]echo ":$OUT:" +exit 0 |