aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-03 15:21:37 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-03 16:04:01 +0200
commit7bc7662f3cd1ceaf55e00f3d5f84e9772574afc8 (patch)
tree1f68eb72c387ee25a2f7d67225538252b6b17ef5 /tests
parent9e3746a4e42f98cad7dfe5b41779ffa81bd4366a (diff)
downloadsciteco-7bc7662f3cd1ceaf55e00f3d5f84e9772574afc8.tar.gz
implemented ^E<code> string building constructs for embedding bytes and codepoints in a strtoul()-like manner
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 2c298b6..c50061a 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -119,7 +119,9 @@ TE_CHECK([[Ifoo^Q]]TE_ESCAPE[[(0/0)]]TE_ESCAPE, 0, ignore, ignore)
TE_CHECK([[@I"foo^Q"(0/0)"]], 0, ignore, ignore)
TE_CHECK([[@I{foo{bar}foo^Q{(0/0)}]], 0, ignore, ignore)
TE_CHECK([[@Ia^EQa(0/0)a]], 0, ignore, ignore)
-# TODO: String building characters
+# Video-TECO-like syntax - might change in the future
+TE_CHECK([[@I/^E<65>^E<0x41>^E<0101>/ <-A:; -A-^^A"N(0/0)' R>]], 0, ignore, ignore)
+# TODO: More string building constructs
AT_CLEANUP
AT_SETUP([Q-Register definitions])
@@ -415,6 +417,8 @@ TE_CHECK([[!foo! Qa"S^C' !foo! Qa"S(0/0)' -Ua @O/foo/]], 0, ignore, ignore)
# This should not leak memory or cause memory corruptions when running under
# Valgrind or Asan:
TE_CHECK_CMDLINE([[!foo!{-5D}]], 0, ignore, stderr)
+# FIXME: Could leak memory, but we cannot detect that easily.
+#TE_CHECK([[!foo]], 1, ignore, ignore)
AT_CLEANUP
#