summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2022-12-11 12:24:29 +0100
committerpgen <p.gen.progs@gmail.com>2022-12-11 13:39:31 +0100
commite61f811d87666e93dea474d23a781e923f1f5896 (patch)
tree2bda7047c951b94134119b3740903c10b5c32e17 /tests
parentef36fd89d89f1a5abd9e055dc4a0613924c9d539 (diff)
Add some tagging/pinning tests
Diffstat (limited to 'tests')
-rw-r--r--tests/tagging/data36
-rw-r--r--tests/tagging/data415
-rw-r--r--tests/tagging/t0016.good19
l---------tests/tagging/t0016.in1
-rw-r--r--tests/tagging/t0016.tst4
-rw-r--r--tests/tagging/t0017.good19
l---------tests/tagging/t0017.in1
-rw-r--r--tests/tagging/t0017.tst4
-rw-r--r--tests/tagging/t0018.good19
l---------tests/tagging/t0018.in1
-rw-r--r--tests/tagging/t0018.tst4
-rw-r--r--tests/tagging/t0019.good39
l---------tests/tagging/t0019.in1
-rw-r--r--tests/tagging/t0019.tst4
-rw-r--r--tests/tagging/t0020.good39
l---------tests/tagging/t0020.in1
-rw-r--r--tests/tagging/t0020.tst4
-rw-r--r--tests/tagging/t0021.good39
l---------tests/tagging/t0021.in1
-rw-r--r--tests/tagging/t0021.tst4
-rw-r--r--tests/tagging/t0022.good39
l---------tests/tagging/t0022.in1
-rw-r--r--tests/tagging/t0022.tst4
-rw-r--r--tests/tagging/t0023.good39
l---------tests/tagging/t0023.in1
-rw-r--r--tests/tagging/t0023.tst4
26 files changed, 313 insertions, 0 deletions
diff --git a/tests/tagging/data3 b/tests/tagging/data3
new file mode 100644
index 0000000..7b221cd
--- /dev/null
+++ b/tests/tagging/data3
@@ -0,0 +1,6 @@
+1 2 3 4 5
+6 7 8 9 10
+11 12 13 14 15
+16 17 18 19 20
+21 22 23 24 25
+26 27 28 29 30
diff --git a/tests/tagging/data4 b/tests/tagging/data4
new file mode 100644
index 0000000..7503354
--- /dev/null
+++ b/tests/tagging/data4
@@ -0,0 +1,15 @@
+1 2 3 4 5 6 7
+8 9 10 11 12 13 14
+15 16 17 18 19 20 21
+22 23 24 25 26 27 28
+29 30 31 32 33 34 35
+36 37 38 39 40 41 42
+43 44 45 46 47 48 49
+50 51 52 53 54 55 56
+57 58 59 60 61 62 63
+64 65 66 67 68 69 70
+71 72 73 74 75 76 77
+78 79 80 81 82 83 84
+85 86 87 88 89 90 91
+92 93 94 95 96 97 98
+99 100
diff --git a/tests/tagging/t0016.good b/tests/tagging/t0016.good
new file mode 100644
index 0000000..1c0c3f1
--- /dev/null
+++ b/tests/tagging/t0016.good
@@ -0,0 +1,19 @@
+$ OUT=$(smenu -T -c t0016.in)
+
+1 2 3 4 5 ┐
+16:20
+6 7 8 9 10 │
+3:04 4:04 6:04 7:04 9:04 10:04 12:04 13:04 16:20
+11 12 13 14 15 │
+0:04 1:04 3:04 4:04 6:04 7:04 9:04 10:04 12:04 13:04 16:20
+16 17 18 19 20 █
+0:04 1:04 3:04 4:04 6:04 7:04 9:04 10:04 12:04 13:04 16:20
+21 22 23 24 25 ▼
+0:04 1:04 3:04 4:04 6:04 7:04 9:0407 10:0407 16:20
+$
+
+$ echo ":$OUT:"
+
+:7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24:
+
+$ exit 0
diff --git a/tests/tagging/t0016.in b/tests/tagging/t0016.in
new file mode 120000
index 0000000..cdca2c1
--- /dev/null
+++ b/tests/tagging/t0016.in
@@ -0,0 +1 @@
+data3 \ No newline at end of file
diff --git a/tests/tagging/t0016.tst b/tests/tagging/t0016.tst
new file mode 100644
index 0000000..7e056f1
--- /dev/null
+++ b/tests/tagging/t0016.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -T -c t0016.in)
+\S[150]\s[50]ljTlljjjT\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0017.good b/tests/tagging/t0017.good
new file mode 100644
index 0000000..48a79c3
--- /dev/null
+++ b/tests/tagging/t0017.good
@@ -0,0 +1,19 @@
+$ OUT=$(smenu -P -c t0017.in)
+
+1 2 3 4 5 ┐
+16:20
+6 7 8 9 10 █
+6:0407 7:0407 9:04 10:04 12:04 13:04 16:20
+11 12 13 14 15 │
+0:04 1:04 3:04 4:04 6:04 7:04 9:04 10:04 12:04 13:04 16:20
+16 17 18 19 20 │
+0:04 1:04 3:04 4:04 16:20
+21 22 23 24 25 ▼
+16:20
+$
+
+$ echo ":$OUT:"
+
+:17 16 15 14 13 12 11 10 9 8:
+
+$ exit 0
diff --git a/tests/tagging/t0017.in b/tests/tagging/t0017.in
new file mode 120000
index 0000000..cdca2c1
--- /dev/null
+++ b/tests/tagging/t0017.in
@@ -0,0 +1 @@
+data3 \ No newline at end of file
diff --git a/tests/tagging/t0017.tst b/tests/tagging/t0017.tst
new file mode 100644
index 0000000..0b85365
--- /dev/null
+++ b/tests/tagging/t0017.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -P -c t0017.in)
+\S[150]\s[50]ljjjTkklT\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0018.good b/tests/tagging/t0018.good
new file mode 100644
index 0000000..8d6ad02
--- /dev/null
+++ b/tests/tagging/t0018.good
@@ -0,0 +1,19 @@
+$ OUT=$(smenu -T -c t0018.in)
+
+1 2 3 4 5 ┐
+3:04 4:04 16:20
+6 7 8 9 10 │
+3:04 4:04 16:20
+11 12 13 14 15 │
+3:04 4:04 16:20
+16 17 18 19 20 █
+3:04 4:04 16:20
+21 22 23 24 25 ▼
+3:0407 4:0407 16:20
+$
+
+$ echo ":$OUT:"
+
+:2 7 12 17 22:
+
+$ exit 0
diff --git a/tests/tagging/t0018.in b/tests/tagging/t0018.in
new file mode 120000
index 0000000..cdca2c1
--- /dev/null
+++ b/tests/tagging/t0018.in
@@ -0,0 +1 @@
+data3 \ No newline at end of file
diff --git a/tests/tagging/t0018.tst b/tests/tagging/t0018.tst
new file mode 100644
index 0000000..beb860d
--- /dev/null
+++ b/tests/tagging/t0018.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -T -c t0018.in)
+\S[150]\s[50]ltjCjjCjt\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0019.good b/tests/tagging/t0019.good
new file mode 100644
index 0000000..84a32f3
--- /dev/null
+++ b/tests/tagging/t0019.good
@@ -0,0 +1,39 @@
+$ OUT=$(smenu -P -c -n 15 t0019.in)
+
+1 2 3 4 5 6 7
+
+8 9 10 11 12 13 14
+3:04 4:04 5:04
+15 16 17 18 19 20 21
+3:04 4:04 5:04 7:04 8:04 10:0407 11:0407
+22 23 24 25 26 27 28
+3:04 4:04 5:04 7:04 8:04 10:04 11:04
+29 30 31 32 33 34 35
+3:04 4:04 5:04 7:04 8:04 10:04 11:04
+36 37 38 39 40 41 42
+3:04 4:04 5:04 7:04 8:04 10:04 11:04
+43 44 45 46 47 48 49
+3:04 4:04 5:04 7:04 8:04 10:04 11:04
+50 51 52 53 54 55 56
+7:04 8:04 10:04 11:04
+57 58 59 60 61 62 63
+7:04 8:04 10:04 11:04
+64 65 66 67 68 69 70
+7:04 8:04 10:04 11:04
+71 72 73 74 75 76 77
+10:04 11:04
+78 79 80 81 82 83 84
+
+85 86 87 88 89 90 91
+
+92 93 94 95 96 97 98
+
+99 100
+
+$
+
+$ echo ":$OUT:"
+
+:44 37 30 23 16 9 17 24 31 38 45 52 59 66 74 67 60 53 46 39 32 25 18:
+
+$ exit 0
diff --git a/tests/tagging/t0019.in b/tests/tagging/t0019.in
new file mode 120000
index 0000000..488d13d
--- /dev/null
+++ b/tests/tagging/t0019.in
@@ -0,0 +1 @@
+data4 \ No newline at end of file
diff --git a/tests/tagging/t0019.tst b/tests/tagging/t0019.tst
new file mode 100644
index 0000000..3257f53
--- /dev/null
+++ b/tests/tagging/t0019.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -P -c -n 15 t0019.in)
+\S[150]\s[50]ljjjjjjtkCkkkCktljmjjjjjjjcljMtCkkkkkkkCkt\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0020.good b/tests/tagging/t0020.good
new file mode 100644
index 0000000..de651bd
--- /dev/null
+++ b/tests/tagging/t0020.good
@@ -0,0 +1,39 @@
+$ OUT=$(smenu -P -c -s 50 -n 15 -e 2 t0020.in)
+
+1 2 3 4 5 6 7
+3:24 4:24 5:24
+8 9 10 11 12 13 14
+13:24 14:24
+15 16 17 18 19 20 21
+16:24 17:24 19:24 20:24
+22 23 24 25 26 27 28
+0:24 1:24 3:24 4:24 5:24 7:24 8:24 10:24 11:24 13:24 14:24 16:24 17:24 19:24 20:24
+29 30 31 32 33 34 35
+0:24 1:24 10:24 11:24
+36 37 38 39 40 41 42
+19:24 20:24
+43 44 45 46 47 48 49
+
+50 51 52 53 54 55 56
+3:04 4:04 5:04 7:24 8:24 10:04 11:04 13:04 14:04 16:04 17:04
+57 58 59 60 61 62 63
+0:0407 1:0407 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:04 14:04 16:24 17:24
+64 65 66 67 68 69 70
+
+71 72 73 74 75 76 77
+3:24 4:24 5:24
+78 79 80 81 82 83 84
+13:24 14:24
+85 86 87 88 89 90 91
+
+92 93 94 95 96 97 98
+0:24 1:24
+99 100
+
+$
+
+$ echo ":$OUT:"
+
+:51 53 54 55 61 60 59 58 57:
+
+$ exit 0
diff --git a/tests/tagging/t0020.in b/tests/tagging/t0020.in
new file mode 120000
index 0000000..488d13d
--- /dev/null
+++ b/tests/tagging/t0020.in
@@ -0,0 +1 @@
+data4 \ No newline at end of file
diff --git a/tests/tagging/t0020.tst b/tests/tagging/t0020.tst
new file mode 100644
index 0000000..9e115c8
--- /dev/null
+++ b/tests/tagging/t0020.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -P -c -s 50 -n 15 -e 2 t0020.in)
+\S[150]\s[50]lmllrltjthRhhRht\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0021.good b/tests/tagging/t0021.good
new file mode 100644
index 0000000..11a9bb2
--- /dev/null
+++ b/tests/tagging/t0021.good
@@ -0,0 +1,39 @@
+$ OUT=$(smenu -T -c -s 50 -n 15 -e 2 t0021.in)
+
+1 2 3 4 5 6 7
+3:24 4:24 5:24
+8 9 10 11 12 13 14
+13:24 14:24
+15 16 17 18 19 20 21
+16:24 17:24 19:24 20:24
+22 23 24 25 26 27 28
+0:24 1:24 3:24 4:24 5:24 7:24 8:24 10:24 11:24 13:24 14:24 16:24 17:24 19:24 20:24
+29 30 31 32 33 34 35
+0:24 1:24 10:24 11:24
+36 37 38 39 40 41 42
+19:24 20:24
+43 44 45 46 47 48 49
+
+50 51 52 53 54 55 56
+3:04 4:04 5:04 7:24 8:24 10:04 11:04 13:04 14:04 16:04 17:04
+57 58 59 60 61 62 63
+0:0407 1:0407 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:04 14:04 16:24 17:24
+64 65 66 67 68 69 70
+
+71 72 73 74 75 76 77
+3:24 4:24 5:24
+78 79 80 81 82 83 84
+13:24 14:24
+85 86 87 88 89 90 91
+
+92 93 94 95 96 97 98
+0:24 1:24
+99 100
+
+$
+
+$ echo ":$OUT:"
+
+:51 53 54 55 57 58 59 60 61:
+
+$ exit 0
diff --git a/tests/tagging/t0021.in b/tests/tagging/t0021.in
new file mode 120000
index 0000000..488d13d
--- /dev/null
+++ b/tests/tagging/t0021.in
@@ -0,0 +1 @@
+data4 \ No newline at end of file
diff --git a/tests/tagging/t0021.tst b/tests/tagging/t0021.tst
new file mode 100644
index 0000000..e451196
--- /dev/null
+++ b/tests/tagging/t0021.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -T -c -s 50 -n 15 -e 2 t0021.in)
+\S[150]\s[50]lmllrltjthRhhRht\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0022.good b/tests/tagging/t0022.good
new file mode 100644
index 0000000..091c101
--- /dev/null
+++ b/tests/tagging/t0022.good
@@ -0,0 +1,39 @@
+$ OUT=$(smenu -P -c -n 15 t0022.in)
+
+1 2 3 4 5 6 7
+13:04 14:04
+8 9 10 11 12 13 14
+
+15 16 17 18 19 20 21
+0:04 1:04
+22 23 24 25 26 27 28
+0:04 1:04 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:07 14:07 16:04 17:04 19:04 20:04
+29 30 31 32 33 34 35
+19:04 20:04
+36 37 38 39 40 41 42
+
+43 44 45 46 47 48 49
+7:04 8:04
+50 51 52 53 54 55 56
+0:04 1:04 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:04 14:04 16:04 17:04 19:04 20:04
+57 58 59 60 61 62 63
+0:04 1:04 3:04 4:04 5:04 7:04 8:04
+64 65 66 67 68 69 70
+3:04 4:04 5:04
+71 72 73 74 75 76 77
+13:04 14:04
+78 79 80 81 82 83 84
+
+85 86 87 88 89 90 91
+0:04 1:04
+92 93 94 95 96 97 98
+10:04 11:04
+99 100
+
+$
+
+$ echo ":$OUT:"
+
+:5 15 25 35 45 50 51 52 53 54 55 56 57 58 59 65 75 85 95 22 23 24 27 28:
+
+$ exit 0
diff --git a/tests/tagging/t0022.in b/tests/tagging/t0022.in
new file mode 120000
index 0000000..488d13d
--- /dev/null
+++ b/tests/tagging/t0022.in
@@ -0,0 +1 @@
+data4 \ No newline at end of file
diff --git a/tests/tagging/t0022.tst b/tests/tagging/t0022.tst
new file mode 100644
index 0000000..f3660cd
--- /dev/null
+++ b/tests/tagging/t0022.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -P -c -n 15 t0022.in)
+\S[150]\s[50]"5\rTjjj\er"6\rT\ehcjjjtUU\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0
diff --git a/tests/tagging/t0023.good b/tests/tagging/t0023.good
new file mode 100644
index 0000000..d6bfaf9
--- /dev/null
+++ b/tests/tagging/t0023.good
@@ -0,0 +1,39 @@
+$ OUT=$(smenu -T -c -n 15 t0023.in)
+
+1 2 3 4 5 6 7
+13:04 14:04
+8 9 10 11 12 13 14
+
+15 16 17 18 19 20 21
+0:04 1:04
+22 23 24 25 26 27 28
+0:04 1:04 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:07 14:07 16:04 17:04 19:04 20:04
+29 30 31 32 33 34 35
+19:04 20:04
+36 37 38 39 40 41 42
+
+43 44 45 46 47 48 49
+7:04 8:04
+50 51 52 53 54 55 56
+0:04 1:04 3:04 4:04 5:04 7:04 8:04 10:04 11:04 13:04 14:04 16:04 17:04 19:04 20:04
+57 58 59 60 61 62 63
+0:04 1:04 3:04 4:04 5:04 7:04 8:04
+64 65 66 67 68 69 70
+3:04 4:04 5:04
+71 72 73 74 75 76 77
+13:04 14:04
+78 79 80 81 82 83 84
+
+85 86 87 88 89 90 91
+0:04 1:04
+92 93 94 95 96 97 98
+10:04 11:04
+99 100
+
+$
+
+$ echo ":$OUT:"
+
+:5 15 22 23 24 25 27 28 35 45 50 51 52 53 54 55 56 57 58 59 65 75 85 95:
+
+$ exit 0
diff --git a/tests/tagging/t0023.in b/tests/tagging/t0023.in
new file mode 120000
index 0000000..488d13d
--- /dev/null
+++ b/tests/tagging/t0023.in
@@ -0,0 +1 @@
+data4 \ No newline at end of file
diff --git a/tests/tagging/t0023.tst b/tests/tagging/t0023.tst
new file mode 100644
index 0000000..525aff9
--- /dev/null
+++ b/tests/tagging/t0023.tst
@@ -0,0 +1,4 @@
+\S[150]\s[10]OUT=$(smenu -T -c -n 15 t0023.in)
+\S[150]\s[50]"5\rTjjj\er"6\rT\ehcjjjtUU\r
+\S[150]\s[10]echo ":$\s[10]OUT:"
+exit 0