Browse Source

tests/basics/lexer: Add lexer tests for input starting with newlines.

pull/3074/head
Tom Collins 8 years ago
committed by Damien George
parent
commit
d00d062af2
  1. 8
      tests/basics/lexer.py

8
tests/basics/lexer.py

@ -9,6 +9,14 @@ exec("\n")
exec("\n\n")
exec("\r")
exec("\r\r")
exec("\t")
exec("\r\n")
exec("\nprint(1)")
exec("\rprint(2)")
exec("\r\nprint(3)")
exec("\n5")
exec("\r6")
exec("\r\n7")
print(eval("1"))
print(eval("12"))
print(eval("123"))

Loading…
Cancel
Save