aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-20 15:54:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:34 +0200
commit45a0995457ceaf806970cf2a8e9f7001e3236ed4 (patch)
tree86cb5ed8fa3974160e08aca73969fc5ea8da66ef /unit-tests/test/script/parser
parent64f4dafa5e859d339d48526ac5373e5e122c298b (diff)
Fix pre-parsing corner cases
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r--unit-tests/test/script/parser/pre-parse.test15
1 files changed, 15 insertions, 0 deletions
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
+#
+$* <<EOI 2>>EOE != 0
+x = [foo=bar]
+EOI
+testscript:1:5: error: unknown value attribute foo=bar
+EOE
+
+# attribute-pair-empty
+#
+$* <<EOI 2>>EOE != 0
+x = [foo=]
+EOI
+testscript:1:5: error: unknown value attribute foo
+EOE