add extra tests to verify that co_varnames is being set up properly

also normalize checks for syntax errors and delete commented out
definition of verify.
This commit is contained in:
Jeremy Hylton 2001-01-25 17:03:37 +00:00
parent a6ebc4841d
commit 92e9f29aec
2 changed files with 23 additions and 24 deletions

View file

@ -24,6 +24,8 @@ extended print_stmt
1 2 3
1 1 1
hello world
SyntaxError expected for "print ,"
SyntaxError expected for "print >> x,"
del_stmt
pass_stmt
flow_stmt
@ -56,6 +58,6 @@ classdef
[(1, 'Apple'), (1, 'Banana'), (1, 'Coconut'), (2, 'Apple'), (2, 'Banana'), (2, 'Coconut'), (3, 'Apple'), (3, 'Banana'), (3, 'Coconut'), (4, 'Apple'), (4, 'Banana'), (4, 'Coconut'), (5, 'Apple'), (5, 'Banana'), (5, 'Coconut')]
[(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')]
[0, 0, 0]
good: got a SyntaxError as expected
good: got a SyntaxError as expected
SyntaxError expected for "[i, s for i in nums for s in strs]"
SyntaxError expected for "[x if y]"
[('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]