mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
test cases for error rewriting
This commit is contained in:
parent
d41d9c457c
commit
859c033cb0
24
tests/error_inputs/first.moon
Normal file
24
tests/error_inputs/first.moon
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
hello_world = false
|
||||
|
||||
if hello_world
|
||||
print "sackman"
|
||||
x = 5 + 5
|
||||
print something.what
|
||||
|
||||
|
||||
if hello_world
|
||||
print 343434
|
||||
print bott.dady
|
||||
|
||||
|
||||
if not hello_world
|
||||
if true
|
||||
x = 5+2
|
||||
x = 5+2
|
||||
x = 5+2
|
||||
|
||||
if true
|
||||
print what.heck
|
||||
|
||||
|
18
tests/error_inputs/second.moon
Normal file
18
tests/error_inputs/second.moon
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
if false
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
print hello
|
||||
else
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
print "hello world"
|
||||
print doesnt.exist
|
||||
|
||||
|
||||
|
18
tests/error_inputs/third.moon
Normal file
18
tests/error_inputs/third.moon
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
if (->
|
||||
print "hello world"
|
||||
print "who is this")
|
||||
true
|
||||
true
|
||||
true
|
||||
true
|
||||
print dead.world
|
||||
print "okay now"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
print "this is wrong"
|
||||
|
Loading…
Reference in New Issue
Block a user