aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-25 11:08:18 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-26 00:42:15 +0300
commit83dddcf2064c26d3ac2a12d7b8158f8891329181 (patch)
treef900fec8e842074c95e4c103b348fc882925aabb /tests/testsuite.at
parenteee669a76b3c0b1928475d55d9e1333b3d15bb8c (diff)
downloadsciteco-83dddcf2064c26d3ac2a12d7b8158f8891329181.tar.gz
support :=/:==/:=== commands: print number without trailing linefeed
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 837fdef..0ae9e0c 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -174,10 +174,14 @@ TE_CHECK([[(]]TE_MAXINT64[[)-(]]TE_MAXINT64[[)"N(0/0)']], 0, ignore, ignore)
TE_CHECK([[(]]TE_MININT64[[)-(]]TE_MININT64[[)"N(0/0)']], 0, ignore, ignore)
AT_CLEANUP
+# FIXME: Once we have a --quiet option, we should probably use it here.
AT_SETUP([Printing numbers])
# Must print only one hexadecimal number.
TE_CHECK([[255===]], 0, stdout, ignore)
AT_FAIL_IF([test `$GREP -v "^Info:" stdout | wc -l` -ne 1], 0, ignore, ignore)
+# Without LF: Only the "Info:" line will be counted.
+TE_CHECK([[255:===]], 0, stdout, ignore)
+AT_FAIL_IF([test `wc -l <stdout` -ne 1], 0, ignore, ignore)
# Will print a decimal, octal and 2 hexadecimal numbers.
TE_CHECK_CMDLINE([[2<255===>]], 0, stdout, ignore)
AT_FAIL_IF([test `$GREP -v "^Info:" stdout | wc -l` -ne 4], 0, ignore, ignore)