From 35a759dc1dae33d62d005fe44f3cda4599a3c297 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 19 Dec 2017 16:13:00 +1100 Subject: tests: Add some more tests to improve coverage of py/parse.c. --- tests/basics/syntaxerror.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/basics/syntaxerror.py') 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") -- cgit v1.2.3