aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 20869f4..20a76c5 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -59,6 +59,14 @@ AT_CHECK([$SCITECO -e "(1-6*5-1)+30\"N(0/0)'"], 0, ignore, ignore)
AT_CHECK([$SCITECO -e "(1-6*5-1*2*2)+33\"N(0/0)'"], 0, ignore, ignore)
AT_CLEANUP
+AT_SETUP([Modifiers])
+AT_CHECK([$SCITECO -e '@:W$ :@W$'], 0, ignore, ignore)
+# Detect invalid modifiers
+AT_CHECK([$SCITECO -e '@J'], 1, ignore, ignore)
+AT_CHECK([$SCITECO -e ': '], 1, ignore, ignore)
+AT_CHECK([$SCITECO -e '::C$'], 1, ignore, ignore)
+AT_CLEANUP
+
AT_SETUP([Closing loops at the correct macro level])
AT_CHECK([$SCITECO -e '@^Ua{>} <Ma'], 1, ignore, ignore)
AT_CLEANUP
@@ -352,13 +360,6 @@ AT_CHECK([$SCITECO -e "| (0/0) '"], 1, ignore, ignore)
AT_XFAIL_IF(true)
AT_CLEANUP
-AT_SETUP([Out-of-place modifiers])
-# NOTE: `J` does not currently support @-modifiers.
-# This should be a syntax error.
-AT_CHECK([$SCITECO -e "@I/foo^J/ @J Xa"], 1, ignore, ignore)
-AT_XFAIL_IF(true)
-AT_CLEANUP
-
# NOTE: This bug depends on specific build options of Glib's
# PCRE which is not predictable.
# It segfaults at least on Ubuntu 20.04 (libpcre3 v2:8.39).