From 68364bd3637b6944fa1f63a00dae5caf375afab9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 26 Jul 2026 02:36:20 +0200 Subject: conditionals can be terminated with F" now in addition to a single-quote (') This is useful when writing small macros directly on the command-line as in `sciteco --eval`. If you use double quoted shell strings, too many characters have to be escaped. If you use single-quotes, though, embedding the conditional end (') is annoying -- it would have to be written as '\''. --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index db2465f..0bd68d3 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -123,6 +123,11 @@ TE_CHECK([[1@O/foo,bar/ (0/0) !bar!]], 0, ignore, ignore) TE_CHECK([[-1@O/foo/ 1@O/foo/ @O/,foo/]], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Conditionals]) +# FIXME: Add more test cases +TE_CHECK([[0"N(0/0)F"]], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([String arguments]) TE_CHECK([[Ifoo^Q]]TE_ESCAPE[[(0/0)]]TE_ESCAPE, 0, ignore, ignore) TE_CHECK([[@I"foo^Q"(0/0)"]], 0, ignore, ignore) -- cgit v1.2.3