diff options
Diffstat (limited to 'tests/search')
-rw-r--r-- | tests/search/data3 | 121 | ||||
-rw-r--r-- | tests/search/t0014.good | 25 | ||||
-rw-r--r-- | tests/search/t0015.good | 25 | ||||
-rw-r--r-- | tests/search/t0016.good | 25 | ||||
-rw-r--r-- | tests/search/t0016.tst | 2 | ||||
-rw-r--r-- | tests/search/t0017.good | 25 | ||||
-rw-r--r-- | tests/search/t0018.good | 25 | ||||
l--------- | tests/search/t0018.in | 1 | ||||
-rw-r--r-- | tests/search/t0018.tst | 4 | ||||
-rw-r--r-- | tests/search/t0019.good | 25 | ||||
l--------- | tests/search/t0019.in | 1 | ||||
-rw-r--r-- | tests/search/t0019.tst | 4 | ||||
-rw-r--r-- | tests/search/t0020.good | 25 | ||||
l--------- | tests/search/t0020.in | 1 | ||||
-rw-r--r-- | tests/search/t0020.tst | 4 | ||||
-rw-r--r-- | tests/search/t0021.good | 29 | ||||
l--------- | tests/search/t0021.in | 1 | ||||
-rw-r--r-- | tests/search/t0021.tst | 4 | ||||
-rw-r--r-- | tests/search/t0022.good | 29 | ||||
l--------- | tests/search/t0022.in | 1 | ||||
-rw-r--r-- | tests/search/t0022.tst | 4 |
21 files changed, 380 insertions, 1 deletions
diff --git a/tests/search/data3 b/tests/search/data3 new file mode 100644 index 0000000..d782d96 --- /dev/null +++ b/tests/search/data3 @@ -0,0 +1,121 @@ +"c b bcac" +"cabab " +"baac" +"c" +"aaa ab" +" a ab " +" " +" bcaa a bb" +"b" +"b" +"ba" +" c" +"aa cb" +" aaaab aa" +"ba" +"b" +"ab " +" aaab" +"cbbcaca" +"babb" +"cabbcaaca" +"b" +"cba " +" babbbbbc" +"aababc" +"b" +"a" +"bcabcccc ca ba aca" +"a " +" " +"a ab " +" b" +"aac bb" +"c c" +"a a" +"b a" +"a ba " +"acb cabaabcca " +"b" +"ca" +"a" +"b" +" " +"aa" +"cbccca a" +"a cb" +"a" +"bb bbbac bbc" +"c " +"cc" +" " +"c " +"bacb bcacabaa" +"ac" +"b babaa a a " +"cbacac" +"a " +"a" +" aac " +"c" +" a aaaca bb" +"a caa" +" " +"cba " +"b" +" b " +"abcbb c" +"babc" +"c a" +"c " +"b" +"b b" +"ccca b" +" " +"ab" +"ab ba" +"cacc ba" +"bcc" +"cacbb" +" cbba ca" +"ca c aaa c cca" +" a" +"bb" +" " +" b" +"ac" +" c" +" b" +"c" +"ca b" +" babbc cc a cbab" +"baaa cc a" +" " +"baabbcac" +"a" +"b" +"bbc " +"bc" +" " +"bcbcac" +"bba" +"bc b" +" a b" +" cbb" +" cbbc" +" " +"b" +"acba " +"a" +" " +"a a " +"caabbbbb" +"c" +"ba" +"bcb ca cbccac" +" abb" +"aba cc bbb" +"ba" +"cbc cab b" +"cbaab " +"c b cbb" diff --git a/tests/search/t0014.good b/tests/search/t0014.good new file mode 100644 index 0000000..e01a5f7 --- /dev/null +++ b/tests/search/t0014.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 -T, t0014.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +42:040723 43:040723 44:040723 45:040723 46:0407 54:0423 55:04 56:0423 57:0423 58:0423 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +18:0423 19:0423 20:0423 21:0423 22:04 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +66:0423 67:0423 68:0423 69:0423 70:04 72:0423 73:0423 74:04 75:0423 76:0423 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac +48:0423 49:0423 50:04 51:0423 52:0423 72:0423 73:04 74:0423 75:0423 76:0423 +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca + +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac +42:0423 43:0423 44:0423 45:04 46:0423 +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +6:0423 7:0423 8:0423 9:0423 10:04 36:0423 37:04 38:0423 39:0423 40:0423 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +42:0423 43:04 44:0423 45:0423 46:0423 +$ + +$ echo ":$OUT:" + +:abaca,acbac,abacc,abaca,abaac,abaac,acbac,ababc,abacc,acbac,aabac: + +$ exit 0 diff --git a/tests/search/t0015.good b/tests/search/t0015.good new file mode 100644 index 0000000..2fb8952 --- /dev/null +++ b/tests/search/t0015.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 -T, t0015.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +30:0407 31:040723 32:040723 33:040723 34:040723 48:04 49:0423 50:0423 51:0423 52:0423 54:0423 55:04 56:0423 57:0423 58:0423 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +18:0423 19:0423 20:0423 21:04 22:0423 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +72:0423 73:0423 74:04 75:0423 76:0423 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac +48:0423 49:0423 50:04 51:0423 52:0423 72:0423 73:04 74:0423 75:0423 76:0423 +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca + +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac +42:0423 43:0423 44:0423 45:04 46:0423 +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +6:0423 7:0423 8:0423 9:04 10:0423 36:0423 37:04 38:0423 39:0423 40:0423 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +42:04 43:0423 44:0423 45:0423 46:0423 +$ + +$ echo ":$OUT:" + +:cabac,cabac,acbac,abacc,abaac,abaac,acbac,ababc,abacc,acbac,aabac: + +$ exit 0 diff --git a/tests/search/t0016.good b/tests/search/t0016.good new file mode 100644 index 0000000..5dfbd53 --- /dev/null +++ b/tests/search/t0016.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 -T, t0016.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +42:040723 43:040723 44:040723 45:040723 46:0407 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +18:0423 19:0423 20:0423 21:0423 22:04 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +66:0423 67:0423 68:0423 69:0423 70:04 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac + +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca + +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac + +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +6:0423 7:0423 8:0423 9:0423 10:04 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab + +$ + +$ echo ":$OUT:" + +:abaca,abacc,abaca,abacc: + +$ exit 0 diff --git a/tests/search/t0016.tst b/tests/search/t0016.tst index ad8309c..6b3a688 100644 --- a/tests/search/t0016.tst +++ b/tests/search/t0016.tst @@ -1,4 +1,4 @@ \S[10]OUT=$(smenu -n 20 -T, t0016.in) -\S[100]'s[120]~abac\x[1b5b48]\rT\r +\S[100]s[120]'abac\x[1b5b48]\rT\r \s[0]echo ":$OUT:" exit 0 diff --git a/tests/search/t0017.good b/tests/search/t0017.good new file mode 100644 index 0000000..facad3d --- /dev/null +++ b/tests/search/t0017.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 -T, t0017.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +30:0407 31:040723 32:040723 33:040723 34:040723 48:04 49:0423 50:0423 51:0423 52:0423 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba + +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac + +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac + +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca + +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac + +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab + +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +42:04 43:0423 44:0423 45:0423 46:0423 +$ + +$ echo ":$OUT:" + +:cabac,cabac,aabac: + +$ exit 0 diff --git a/tests/search/t0018.good b/tests/search/t0018.good new file mode 100644 index 0000000..644e362 --- /dev/null +++ b/tests/search/t0018.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 t0018.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +0:0723 1:07 2:07 3:07 4:0723 67:23 70:23 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +12:23 16:23 57:23 58:23 67:23 70:23 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +13:23 16:23 26:23 28:23 39:23 40:23 45:23 46:23 62:23 64:23 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac +25:23 28:23 33:23 34:23 +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca +50:23 52:23 69:23 70:23 +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac +14:23 16:23 33:23 34:23 +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +3:23 4:23 44:23 46:23 67:23 70:23 75:23 76:23 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +9:23 10:23 15:23 16:23 27:23 28:23 51:23 52:23 +$ + +$ echo ":$OUT:" + +:abccb: + +$ exit 0 diff --git a/tests/search/t0018.in b/tests/search/t0018.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/search/t0018.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/search/t0018.tst b/tests/search/t0018.tst new file mode 100644 index 0000000..cef16b1 --- /dev/null +++ b/tests/search/t0018.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -n 20 t0018.in) +\S[100]\s[120]*ab\x[1b5b46]\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0019.good b/tests/search/t0019.good new file mode 100644 index 0000000..e2ab9a0 --- /dev/null +++ b/tests/search/t0019.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 t0019.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca + +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +54:07 55:07 56:07 57:0723 58:0723 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +39:23 40:23 45:23 46:23 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac +33:23 34:23 +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca +69:23 70:23 +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac +33:23 34:23 +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +3:23 4:23 75:23 76:23 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +9:23 10:23 15:23 16:23 27:23 28:23 51:23 52:23 +$ + +$ echo ":$OUT:" + +:babab: + +$ exit 0 diff --git a/tests/search/t0019.in b/tests/search/t0019.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/search/t0019.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/search/t0019.tst b/tests/search/t0019.tst new file mode 100644 index 0000000..19fb778 --- /dev/null +++ b/tests/search/t0019.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -n 20 t0019.in) +\S[100]\s[120]'ab\x[1b5b46]\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0020.good b/tests/search/t0020.good new file mode 100644 index 0000000..cb26b78 --- /dev/null +++ b/tests/search/t0020.good @@ -0,0 +1,25 @@ +$ OUT=$(smenu -n 20 t0020.in) + +abccb aaacc cbaba acbaa baabc cabac ccaac abaca cabac acbac bacbc cacbb acaca +0:0723 1:0723 2:07 3:07 4:07 42:23 43:23 +bbaaa aabcc acccb abacc cacac bccbc cccaa abcbc bcccc babab cacba bacbb cbcba +18:23 19:23 42:23 43:23 +aaabc bcbba cabbb caaac acacb abbaa acaab ccaab caabc bcacc baabb abaca abaac +30:23 31:23 66:23 67:23 72:23 73:23 +cccba bccac bbcca bccac caccb cbbab cbacc cccac abaac bbbcb cbbba bcbcb acbac +48:23 49:23 +bcbbb caaca accbc bbccc aacca bbcbc cbbcc ccaaa aaacb caacc accaa cabab accca + +bcbbb babcc ccabb cacba abbaa cbcab caccc ababc babba ccbca abcba aabca acaac +24:23 25:23 42:23 43:23 60:23 61:23 +accab abacc aabaa aaaca aabaa babcc acbac caacb ccbcc bbacc aabaa aabcb ccaab +6:23 7:23 +cbbbb abcab bcaab babbc babab ccbcc accbc aabac cbaab +6:23 7:23 +$ + +$ echo ":$OUT:" + +:abccb: + +$ exit 0 diff --git a/tests/search/t0020.in b/tests/search/t0020.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/search/t0020.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/search/t0020.tst b/tests/search/t0020.tst new file mode 100644 index 0000000..66ec0cb --- /dev/null +++ b/tests/search/t0020.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -n 20 t0020.in) +\S[100]\s[120]^ab\x[1b5b46]\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0021.good b/tests/search/t0021.good new file mode 100644 index 0000000..5ac53da --- /dev/null +++ b/tests/search/t0021.good @@ -0,0 +1,29 @@ +$ OUT=$(smenu -n 18 t0021.in) + +c b bcac cabab baac c aaa ab a ab bcaa a bb b b ba c aa cb +24:07 25:07 26:07 27:07 28:0723 29:0723 47:23 51:23 64:23 69:23 + aaaab aa ba b ab aaab cbbcaca babb cabbcaaca b cba babbbbbc aababc b a +24:23 25:23 36:23 38:23 +bcabcccc ca ba aca a a ab b aac bb c c a a b a a ba acb cabaabcca b +34:23 38:23 +ca a b aa cbccca a a cb a bb bbbac bbc c cc c bacb bcacabaa ac +19:23 23:23 +b babaa a a cbacac a a aac c a aaaca bb a caa cba b b abcbb c +43:23 46:23 +babc c a c b b b ccca b ab ab ba cacc ba bcc cacbb cbba ca +23:23 25:23 27:23 28:23 49:23 52:23 +ca c aaa c cca a bb b ac c b c ca b babbc cc a cbab +46:23 48:23 66:23 67:23 +baaa cc a baabbcac a b bbc bc bcbcac bba bc b a b cbb cbbc b acba a +50:23 52:23 +a a caabbbbb c ba bcb ca cbccac abb aba cc bbb ba cbc cab b cbaab +7:23 12:23 36:23 38:23 42:23 50:23 60:23 63:23 +c b cbb + +$ + +$ echo ":$OUT:" + +:aaa ab: + +$ exit 0 diff --git a/tests/search/t0021.in b/tests/search/t0021.in new file mode 120000 index 0000000..cdca2c1 --- /dev/null +++ b/tests/search/t0021.in @@ -0,0 +1 @@ +data3
\ No newline at end of file diff --git a/tests/search/t0021.tst b/tests/search/t0021.tst new file mode 100644 index 0000000..a488861 --- /dev/null +++ b/tests/search/t0021.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -n 18 t0021.in) +\S[100]\s[120]~ab\x[1b5b46]\r\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/search/t0022.good b/tests/search/t0022.good new file mode 100644 index 0000000..10705e9 --- /dev/null +++ b/tests/search/t0022.good @@ -0,0 +1,29 @@ +$ OUT=$(smenu -n 18 t0022.in) + +c b bcac cabab baac c aaa ab a ab bcaa a bb b b ba c aa cb +24:0723 25:07 26:07 27:07 28:07 29:0723 63:23 69:23 + aaaab aa ba b ab aaab cbbcaca babb cabbcaaca b cba babbbbbc aababc b a +15:23 16:23 67:23 69:23 +bcabcccc ca ba aca a a ab b aac bb c c a a b a a ba acb cabaabcca b +23:23 26:23 33:23 37:23 54:23 56:23 60:23 62:23 +ca a b aa cbccca a a cb a bb bbbac bbc c cc c bacb bcacabaa ac +19:23 23:23 +b babaa a a cbacac a a aac c a aaaca bb a caa cba b b abcbb c +66:23 67:23 +babc c a c b b b ccca b ab ab ba cacc ba bcc cacbb cbba ca +27:23 28:23 30:23 31:23 +ca c aaa c cca a bb b ac c b c ca b babbc cc a cbab + +baaa cc a baabbcac a b bbc bc bcbcac bba bc b a b cbb cbbc b acba a +69:23 71:23 +a a caabbbbb c ba bcb ca cbccac abb aba cc bbb ba cbc cab b cbaab +40:23 41:23 +c b cbb + +$ + +$ echo ":$OUT:" + +:aaa ab: + +$ exit 0 diff --git a/tests/search/t0022.in b/tests/search/t0022.in new file mode 120000 index 0000000..cdca2c1 --- /dev/null +++ b/tests/search/t0022.in @@ -0,0 +1 @@ +data3
\ No newline at end of file diff --git a/tests/search/t0022.tst b/tests/search/t0022.tst new file mode 100644 index 0000000..0c49b6f --- /dev/null +++ b/tests/search/t0022.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -n 18 t0022.in) +\S[100]\s[120]~ab\x[1b5b48]\r\r +\s[0]echo ":$OUT:" +exit 0 |