aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2022-12-01 07:32:46 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2022-12-01 07:43:04 +0300
commitdb40b99e38149d644808ec22b44a89fe758b739b (patch)
treeb0a404fb06aece4eb99b2d760a698f80ad4fafe8 /tests
parentca9de0428fa69c2e0c6fee1b960c9408c5184301 (diff)
downloadsciteco-db40b99e38149d644808ec22b44a89fe758b739b.tar.gz
testsuite: added (known bug) testcases for dangling else- and end-if statements
* This is not easy to fix (show errors when encountering these constructs without preceding if <"> statements) and would require complicating the parser only to detect this. On the other hand, keeping things as they are does not really harm anybody.
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 dd37053..e604c7f 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -113,6 +113,12 @@ AT_CLEANUP
AT_BANNER([Known Bugs])
+AT_SETUP([Dangling Else/End-If])
+AT_CHECK([$SCITECO -e "'"], 1, ignore, ignore)
+AT_CHECK([$SCITECO -e "| (0/0) '"], 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.
#AT_SETUP([Pattern matching overflow])