diff options
author | pgen <p.gen.progs@gmail.com> | 2020-11-11 18:32:55 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-11-11 21:25:23 +0100 |
commit | 039bc49c5685e45905c6b3b40751eec4b2b752de (patch) | |
tree | f2bbc82ce349c835b7ef9ee0dbaa41acd8c77e9e | |
parent | 6bddd53c32658ed546e627050a2524af73d8895d (diff) |
Add tests for RE patterns/inv. character testing
-rw-r--r-- | tests/in-ex-clusions/data2 | 1 | ||||
-rw-r--r-- | tests/in-ex-clusions/t0006.good | 11 | ||||
l--------- | tests/in-ex-clusions/t0006.in | 1 | ||||
-rw-r--r-- | tests/in-ex-clusions/t0006.tst | 4 | ||||
-rw-r--r-- | tests/invalid_char/data1 | 1 | ||||
-rw-r--r-- | tests/invalid_char/data2 | 1 | ||||
-rw-r--r-- | tests/invalid_char/data3 | 1 | ||||
-rw-r--r-- | tests/invalid_char/t0001.good | 11 | ||||
l--------- | tests/invalid_char/t0001.in | 1 | ||||
-rw-r--r-- | tests/invalid_char/t0001.tst | 4 | ||||
-rw-r--r-- | tests/invalid_char/t0002.good | 11 | ||||
l--------- | tests/invalid_char/t0002.in | 1 | ||||
-rw-r--r-- | tests/invalid_char/t0002.tst | 4 | ||||
-rw-r--r-- | tests/invalid_char/t0003.good | 11 | ||||
l--------- | tests/invalid_char/t0003.in | 1 | ||||
-rw-r--r-- | tests/invalid_char/t0003.tst | 4 |
16 files changed, 68 insertions, 0 deletions
diff --git a/tests/in-ex-clusions/data2 b/tests/in-ex-clusions/data2 new file mode 100644 index 0000000..44d75be --- /dev/null +++ b/tests/in-ex-clusions/data2 @@ -0,0 +1 @@ +a«bc\u01 a«b»»c diff --git a/tests/in-ex-clusions/t0006.good b/tests/in-ex-clusions/t0006.good new file mode 100644 index 0000000..dd074f5 --- /dev/null +++ b/tests/in-ex-clusions/t0006.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -e\\U0000bb t0006.in) + +a«bc. a«b»»c +0:07 1:07 2:07 3:07 4:07 6:24 7:24 8:24 9:24 10:24 11:24 +$ + +$ echo ":$OUT:" + +:a«bc.: + +$ exit 0 diff --git a/tests/in-ex-clusions/t0006.in b/tests/in-ex-clusions/t0006.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/in-ex-clusions/t0006.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/in-ex-clusions/t0006.tst b/tests/in-ex-clusions/t0006.tst new file mode 100644 index 0000000..2f4e753 --- /dev/null +++ b/tests/in-ex-clusions/t0006.tst @@ -0,0 +1,4 @@ +\S[150]\s[10]OUT=$(smenu -e\\\\U0000bb t0006.in) +\S[150]\s[150]l\r +\S[150]\s[10]echo ":$\s[10]OUT:" +exit 0 diff --git a/tests/invalid_char/data1 b/tests/invalid_char/data1 new file mode 100644 index 0000000..ab9e393 --- /dev/null +++ b/tests/invalid_char/data1 @@ -0,0 +1 @@ +a«b»c diff --git a/tests/invalid_char/data2 b/tests/invalid_char/data2 new file mode 100644 index 0000000..87285cb --- /dev/null +++ b/tests/invalid_char/data2 @@ -0,0 +1 @@ +a«b»c\u01 a««b»»c\U000001 diff --git a/tests/invalid_char/data3 b/tests/invalid_char/data3 new file mode 100644 index 0000000..44d75be --- /dev/null +++ b/tests/invalid_char/data3 @@ -0,0 +1 @@ +a«bc\u01 a«b»»c diff --git a/tests/invalid_char/t0001.good b/tests/invalid_char/t0001.good new file mode 100644 index 0000000..a7c8f1b --- /dev/null +++ b/tests/invalid_char/t0001.good @@ -0,0 +1,11 @@ +$ OUT=$(LC_ALL=C smenu -. ! t0001.in) + +a!b!c +0:07 1:07 2:07 3:07 4:07 +$ + +$ echo ":$OUT:" + +:a!b!c: + +$ exit 0 diff --git a/tests/invalid_char/t0001.in b/tests/invalid_char/t0001.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/invalid_char/t0001.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/invalid_char/t0001.tst b/tests/invalid_char/t0001.tst new file mode 100644 index 0000000..c530d60 --- /dev/null +++ b/tests/invalid_char/t0001.tst @@ -0,0 +1,4 @@ +\S[150]\s[10]OUT=$(LC_ALL=C smenu -. ! t0001.in) +\S[150]\s[150]\r +\S[150]\s[10]echo ":$\s[10]OUT:" +exit 0 diff --git a/tests/invalid_char/t0002.good b/tests/invalid_char/t0002.good new file mode 100644 index 0000000..881ba7e --- /dev/null +++ b/tests/invalid_char/t0002.good @@ -0,0 +1,11 @@ +$ OUT=$(LC_ALL=C smenu -. ! t0002.in) + +a!b!c! a!!b!!c! +7:07 8:07 9:07 10:07 11:07 12:07 13:07 14:07 +$ + +$ echo ":$OUT:" + +:a!!b!!c!: + +$ exit 0 diff --git a/tests/invalid_char/t0002.in b/tests/invalid_char/t0002.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/invalid_char/t0002.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/invalid_char/t0002.tst b/tests/invalid_char/t0002.tst new file mode 100644 index 0000000..bb4d001 --- /dev/null +++ b/tests/invalid_char/t0002.tst @@ -0,0 +1,4 @@ +\S[150]\s[10]OUT=$(LC_ALL=C smenu -. ! t0002.in) +\S[150]\s[150]l\r +\S[150]\s[10]echo ":$\s[10]OUT:" +exit 0 diff --git a/tests/invalid_char/t0003.good b/tests/invalid_char/t0003.good new file mode 100644 index 0000000..1b3484d --- /dev/null +++ b/tests/invalid_char/t0003.good @@ -0,0 +1,11 @@ +$ OUT=$(LC_ALL=C smenu -e\\U0000bb -. ! t0003.in) + +a!bc! a!b!!c +0:07 1:07 2:07 3:07 4:07 6:24 7:24 8:24 9:24 10:24 11:24 +$ + +$ echo ":$OUT:" + +:a!bc!: + +$ exit 0 diff --git a/tests/invalid_char/t0003.in b/tests/invalid_char/t0003.in new file mode 120000 index 0000000..cdca2c1 --- /dev/null +++ b/tests/invalid_char/t0003.in @@ -0,0 +1 @@ +data3
\ No newline at end of file diff --git a/tests/invalid_char/t0003.tst b/tests/invalid_char/t0003.tst new file mode 100644 index 0000000..e8fc6c4 --- /dev/null +++ b/tests/invalid_char/t0003.tst @@ -0,0 +1,4 @@ +\S[150]\s[10]OUT=$(LC_ALL=C smenu -e\\\\U0000bb -. ! t0003.in) +\S[150]\s[150]l\r +\S[150]\s[10]echo ":$\s[10]OUT:" +exit 0 |