From 378b9da1476cdcac14332b89f6286a450c4a7757 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 24 Jul 2026 16:15:46 +0200 Subject: fixed lexer initialization if $SCITECOPATH happens to contain glob characters * Always use ^ENq instead of ^EQq in the first argument of `EN`. * Added a "Globbing" test case - globbing was undertested anyway. --- tests/testsuite.at | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index 887a833..a1a563d 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -312,6 +312,13 @@ AT_DATA([test.txt], [[0123456789 TE_CHECK([[@ER"test.txt" ^S+11"N(0/0)']], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Globbing]) +# This is from the source tree - there should be plenty of lexers +TE_CHECK([[1@EN|^EN[$SCITECOPATH]/lexers/*.tes|| ."=(0/0)' :^Q-50"<(0/0)']], 0, ignore, ignore) +TE_CHECK([[1:@EN|^EN[$srcdir]/*.in||"F(0/0)']], 0, ignore, ignore) +TE_CHECK([[:@EN/[аб]?/бЖ/"F(0/0)']], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Macro calls]) TE_CHECK([[@^Ua{-$$} Ma+1"N(0/0)']], 0, ignore, ignore) AT_CLEANUP -- cgit v1.2.3