aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-26 00:37:43 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-26 00:42:15 +0300
commiteb6f7a82045ad78553fca98c54a51366c55bd7a4 (patch)
treeff0cca8d3dfb71afe832e73616867cd09fdac22c /tests
parent574b46657cd5b752597384b31f37dd6a07f063d8 (diff)
downloadsciteco-eb6f7a82045ad78553fca98c54a51366c55bd7a4.tar.gz
implemented the <T> (typeout) command for printing to the terminal from the current buffer
* refactored some code that is common with Xq into teco_get_range_args().
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 0ae9e0c..ae90b72 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -193,6 +193,15 @@ TE_CHECK([[@^A/TEST^JLine 2/]], 0, stdout, ignore)
AT_FAIL_IF([test `$GREP -v "^Info:" stdout | wc -l` -ne 2], 0, ignore, ignore)
AT_CLEANUP
+AT_SETUP([Type out buffer contents])
+AT_DATA([test.txt], [[Line 1
+Line 2
+Line 3
+]])
+TE_CHECK([[@EB'test.txt' 2T]], 0, stdout, ignore)
+AT_FAIL_IF([test `$GREP -v "^Info:" stdout | wc -l` -ne 2], 0, ignore, ignore)
+AT_CLEANUP
+
AT_SETUP([Convert between line and glyph positions])
TE_CHECK([[@I/1^J2^J3/J 2^QC :^Q-3"N(0/0)']], 0, ignore, ignore)
AT_CLEANUP