Skip to content

Commit d00d062

Browse files
tomlogicdpgeorge
authored andcommitted
tests/basics/lexer: Add lexer tests for input starting with newlines.
1 parent 2998647 commit d00d062

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/basics/lexer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
exec("\n\n")
1010
exec("\r")
1111
exec("\r\r")
12+
exec("\t")
13+
exec("\r\n")
14+
exec("\nprint(1)")
15+
exec("\rprint(2)")
16+
exec("\r\nprint(3)")
17+
exec("\n5")
18+
exec("\r6")
19+
exec("\r\n7")
1220
print(eval("1"))
1321
print(eval("12"))
1422
print(eval("123"))

0 commit comments

Comments
 (0)