tests: Add some more tests to improve coverage of py/parse.c.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user