summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2024-02-07 20:59:50 +0100
committerpgen <p.gen.progs@gmail.com>2024-02-07 21:00:46 +0100
commitff028fa360b6e5905581dd1882dce733909584f7 (patch)
treedacb489b1955bb1a7a92c609dc0b3f384f9a4f9e
parentdfd5830b2ab094d79cc360e9f341d406b2525d16 (diff)
Add a long_lines test and fix scrolling test
-rw-r--r--tests/long_lines/t0008.good19
-rw-r--r--tests/long_lines/t0008.tst5
-rw-r--r--tests/scrolling/t0008.good4
3 files changed, 26 insertions, 2 deletions
diff --git a/tests/long_lines/t0008.good b/tests/long_lines/t0008.good
new file mode 100644
index 0000000..6ad8503
--- /dev/null
+++ b/tests/long_lines/t0008.good
@@ -0,0 +1,19 @@
+$ OUT=$(TERM=vt100 LANG=C smenu -c -n 4 t0007.in)
+
+<69 70 71 72 73 74 75 76 77 78 79 80 81 > ^
+0:07 52:07 54:01
+<109 110 111 112 113 114 115 116 117 118 119 120 121> |
+0:07 49:07 50:07 51:07 52:07 54:01
+<139 140 #
+0:07 54:01
+<149 150 /
+0:07 54:01
+\----------------------------------##----------------/
+0:01 1:01 2:01 3:01 4:01 5:01 6:01 7:01 8:01 9:01 10:01 11:01 12:01 13:01 14:01 15:01 16:01 17:01 18:01 19:01 20:01 21:01 22:01 23:01 24:01 25:01 26:01 27:01 28:01 29:01 30:01 31:01 32:01 33:01 34:01 35:01 36:01 37:01 38:01 39:01 40:01 41:01 42:01 43:01 44:01 45:01 46:01 47:01 48:01 49:01 50:01 51:01 52:01 53:01
+$
+
+$ echo ":$OUT:"
+
+:121:
+
+$ exit 0
diff --git a/tests/long_lines/t0008.tst b/tests/long_lines/t0008.tst
new file mode 100644
index 0000000..edf77d1
--- /dev/null
+++ b/tests/long_lines/t0008.tst
@@ -0,0 +1,5 @@
+\S[300]\s[80]OUT=$(TERM=vt100 LANG=C smenu -c -n 4 t0007.in)
+\S[300]\s[200]hhhhhljjhhjjhhkkhhkkhhjjllkklljjhhhhhjjhhjjllkkhhkkhhjjhhhhhkkhhhhjjjhhhhhh\
+\W[75x24]\S[2000]\W[45x24]\S[2000]\W[55x24]\S[2000]\r
+\S[300]\s[80]echo ":$\s[80]OUT:"
+exit 0
diff --git a/tests/scrolling/t0008.good b/tests/scrolling/t0008.good
index 56e0c20..3c15ad3 100644
--- a/tests/scrolling/t0008.good
+++ b/tests/scrolling/t0008.good
@@ -10,8 +10,8 @@ $ OUT=$(TERM=vt100 LANG=C smenu -c -e x -e '[0-9]' t0008.in)
0:07 70:07 79:01
<abcdefghi jabcdefgh ijabcdefg hijbcdefg hijabcdef ghijabcde fghijabcd> v
0:07 70:07 79:01
-<############################################################################>
-0:01 1:01 2:01 3:01 4:01 5:01 6:01 7:01 8:01 9:01 10:01 11:01 12:01 13:01 14:01 15:01 16:01 17:01 18:01 19:01 20:01 21:01 22:01 23:01 24:01 25:01 26:01 27:01 28:01 29:01 30:01 31:01 32:01 33:01 34:01 35:01 36:01 37:01 38:01 39:01 40:01 41:01 42:01 43:01 44:01 45:01 46:01 47:01 48:01 49:01 50:01 51:01 52:01 53:01 54:01 55:01 56:01 57:01 58:01 59:01 60:01 61:01 62:01 63:01 64:01 65:01 66:01 67:01 68:01 69:01 70:01 71:01 72:01 73:01 74:01 75:01 76:01 77:01
+<#############################################################################>
+0:01 1:01 2:01 3:01 4:01 5:01 6:01 7:01 8:01 9:01 10:01 11:01 12:01 13:01 14:01 15:01 16:01 17:01 18:01 19:01 20:01 21:01 22:01 23:01 24:01 25:01 26:01 27:01 28:01 29:01 30:01 31:01 32:01 33:01 34:01 35:01 36:01 37:01 38:01 39:01 40:01 41:01 42:01 43:01 44:01 45:01 46:01 47:01 48:01 49:01 50:01 51:01 52:01 53:01 54:01 55:01 56:01 57:01 58:01 59:01 60:01 61:01 62:01 63:01 64:01 65:01 66:01 67:01 68:01 69:01 70:01 71:01 72:01 73:01 74:01 75:01 76:01 77:01 78:01
$
$ echo ":$OUT:"