From 83dddcf2064c26d3ac2a12d7b8158f8891329181 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 25 Jul 2025 11:08:18 +0300 Subject: support :=/:==/:=== commands: print number without trailing linefeed --- tests/testsuite.at | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 ]], 0, stdout, ignore) AT_FAIL_IF([test `$GREP -v "^Info:" stdout | wc -l` -ne 4], 0, ignore, ignore) -- cgit v1.2.3