From 45a0995457ceaf806970cf2a8e9f7001e3236ed4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Oct 2016 15:54:09 +0200 Subject: Fix pre-parsing corner cases --- unit-tests/test/script/parser/pre-parse.test | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 unit-tests/test/script/parser/pre-parse.test (limited to 'unit-tests') diff --git a/unit-tests/test/script/parser/pre-parse.test b/unit-tests/test/script/parser/pre-parse.test new file mode 100644 index 0000000..4057f9a --- /dev/null +++ b/unit-tests/test/script/parser/pre-parse.test @@ -0,0 +1,15 @@ +# attribute-pair +# +$* <>EOE != 0 +x = [foo=bar] +EOI +testscript:1:5: error: unknown value attribute foo=bar +EOE + +# attribute-pair-empty +# +$* <>EOE != 0 +x = [foo=] +EOI +testscript:1:5: error: unknown value attribute foo +EOE -- cgit v1.1