Add test scenarios
authorpgen <[email protected]>
Tue, 25 Feb 2025 23:07:26 +0000 (26 00:07 +0100)
committerpgen <[email protected]>
Tue, 25 Feb 2025 23:07:53 +0000 (26 00:07 +0100)
tests/auto-completion/data4 [new file with mode: 0644]
tests/auto-completion/t0006.good [new file with mode: 0644]
tests/auto-completion/t0006.in [new symlink]
tests/auto-completion/t0006.tst [new file with mode: 0644]
tests/auto-completion/t0007.good [new file with mode: 0644]
tests/auto-completion/t0007.in [new symlink]
tests/auto-completion/t0007.tst [new file with mode: 0644]
tests/search/data8 [new file with mode: 0644]

diff --git a/tests/auto-completion/data4 b/tests/auto-completion/data4
new file mode 100644 (file)
index 0000000..f47be9e
--- /dev/null
@@ -0,0 +1,3 @@
+abce 
+abcd 
+xabc
diff --git a/tests/auto-completion/t0006.good b/tests/auto-completion/t0006.good
new file mode 100644 (file)
index 0000000..f02a269
--- /dev/null
@@ -0,0 +1,15 @@
+$ OUT=$(smenu -c -N -- t0006.in)
+
+ 1) abce 
+0:01 1:01 2:01 4:0723 5:0723 6:0723 7:07 
+ 2) abcd 
+0:01 1:01 2:01 4:23 5:23 6:23 
+ 3) xabc 
+0:01 1:01 2:01 5:23 6:23 7:23 
+$ 
+
+$ echo ":$OUT:"
+
+:abce:
+
+$ exit 0
diff --git a/tests/auto-completion/t0006.in b/tests/auto-completion/t0006.in
new file mode 120000 (symlink)
index 0000000..488d13d
--- /dev/null
@@ -0,0 +1 @@
+data4
\ No newline at end of file
diff --git a/tests/auto-completion/t0006.tst b/tests/auto-completion/t0006.tst
new file mode 100644 (file)
index 0000000..bc77dea
--- /dev/null
@@ -0,0 +1,4 @@
+\S[300]\s[80]OUT=$(smenu -c -N -- t0006.in)
+\S[300]\s[200]~e\CI\CHa\CI\r\r
+\S[300]\s[80]echo ":$\s[80]OUT:"
+exit 0
diff --git a/tests/auto-completion/t0007.good b/tests/auto-completion/t0007.good
new file mode 100644 (file)
index 0000000..8d52a47
--- /dev/null
@@ -0,0 +1,15 @@
+$ OUT=$(smenu -c -- t0007.in)
+
+abce 
+0:0723 1:0723 2:0723 3:07 
+abcd 
+0:23 1:23 2:23 
+xabc 
+1:23 2:23 3:23 
+$ 
+
+$ echo ":$OUT:"
+
+:abce:
+
+$ exit 0
diff --git a/tests/auto-completion/t0007.in b/tests/auto-completion/t0007.in
new file mode 120000 (symlink)
index 0000000..488d13d
--- /dev/null
@@ -0,0 +1 @@
+data4
\ No newline at end of file
diff --git a/tests/auto-completion/t0007.tst b/tests/auto-completion/t0007.tst
new file mode 100644 (file)
index 0000000..c88e920
--- /dev/null
@@ -0,0 +1,4 @@
+\S[300]\s[80]OUT=$(smenu -c -- t0007.in)
+\S[300]\s[200]~e\CI\CHa\CI\r\r
+\S[300]\s[80]echo ":$\s[80]OUT:"
+exit 0
diff --git a/tests/search/data8 b/tests/search/data8
new file mode 100644 (file)
index 0000000..4b751cd
--- /dev/null
@@ -0,0 +1,3 @@
+abc
+abcd
+xabc