aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-26 02:36:20 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-26 12:28:34 +0200
commit68364bd3637b6944fa1f63a00dae5caf375afab9 (patch)
tree1a6ff54138f6229cbea51a8999df297b9ce90f00 /tests
parenta07512149088ec8bb47d16ed8fbbfdefd4745626 (diff)
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 '\''.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at5
1 files changed, 5 insertions, 0 deletions
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)