From b8d8d5f87cbe9a4eec4ac410777c716e557b5466 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 10 Mar 2026 16:26:03 +0100 Subject: 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. --- tests/testsuite.at | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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 `:@{`. -- cgit v1.2.3