summaryrefslogtreecommitdiff
path: root/tests/basics/syntaxerror.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-19 16:13:00 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-19 16:13:00 +1100
commit35a759dc1dae33d62d005fe44f3cda4599a3c297 (patch)
tree316d80980190b89a45fd5d38f23fe7db810842da /tests/basics/syntaxerror.py
parentae1be76d4063997b2703ba1ac9d009b31bc06eca (diff)
tests: Add some more tests to improve coverage of py/parse.c.
Diffstat (limited to 'tests/basics/syntaxerror.py')
-rw-r--r--tests/basics/syntaxerror.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/syntaxerror.py b/tests/basics/syntaxerror.py
index 4161de017..843459f0b 100644
--- a/tests/basics/syntaxerror.py
+++ b/tests/basics/syntaxerror.py
@@ -29,6 +29,10 @@ test_syntax(" a\n")
# malformed integer literal (parser error)
test_syntax("123z")
+# input doesn't match the grammar (parser error)
+test_syntax('1 or 2 or')
+test_syntax('{1:')
+
# can't assign to literals
test_syntax("1 = 2")
test_syntax("'' = 1")