From 29f8a698b4d4f5eca3cf7386b5f97055bb0ee311 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 5 Feb 2023 15:19:04 +0000 Subject: [PATCH] Added a mustfail test --- test/scripts/mustfail/string-concat.toy | 5 +++++ test/test_mustfail.c | 1 + 2 files changed, 6 insertions(+) create mode 100644 test/scripts/mustfail/string-concat.toy diff --git a/test/scripts/mustfail/string-concat.toy b/test/scripts/mustfail/string-concat.toy new file mode 100644 index 0000000..d89ef41 --- /dev/null +++ b/test/scripts/mustfail/string-concat.toy @@ -0,0 +1,5 @@ +{ + var s = "foo" - "bar"; +} + +print "All good"; diff --git a/test/test_mustfail.c b/test/test_mustfail.c index 087bcf7..a937c8c 100644 --- a/test/test_mustfail.c +++ b/test/test_mustfail.c @@ -100,6 +100,7 @@ int main() { "declare-types-dictionary-key.toy", "declare-types-dictionary-value.toy", "index-arrays-non-integer.toy", + "string-concat.toy", "unary-inverted-nothing.toy", "unary-negative-nothing.toy", NULL