aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-03-10 16:26:03 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-03-10 16:26:03 +0100
commitb8d8d5f87cbe9a4eec4ac410777c716e557b5466 (patch)
treeea5a872cf4210e8d164f59dc7ed629d2d3b6940a /tests
parent66317e173c592817cfc7052b55a768e3ce7e4223 (diff)
testsuite: added ^ES test case
In TECO-11 pattern matching constructs do not allow backtracking, while the PCREs currently generated do allow backtracking. This would be easy to fix, but there should also be constructs to re-enable the backtracking semantics. I left only a Known Bug test case for the time being.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index d688c6e..6bc33e4 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -671,6 +671,12 @@ TE_CHECK([[@^Um{U.a Q.a-100000"<%.aMm'} 0Mm]], 0, ignore, ignore)
AT_XFAIL_IF(true)
AT_CLEANUP
+AT_SETUP([Backtracking in patterns])
+# ^ES should be greedy and posessive
+TE_CHECK([[@I/ /J :@S/^ES^X/"S(0/0)']], 0, ignore, ignore)
+AT_XFAIL_IF(true)
+AT_CLEANUP
+
AT_SETUP([Rub out from empty string argument])
# Should rub out the modifiers as well.
# Will currently fail because it tries to execute `:@{`.