mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
add spec
This commit is contained in:
parent
d8273d5985
commit
a841de51ab
5
spec/inputs/unless_else.moon
Normal file
5
spec/inputs/unless_else.moon
Normal file
@ -0,0 +1,5 @@
|
||||
if a
|
||||
unless b
|
||||
print "hi"
|
||||
elseif c
|
||||
print "not hi"
|
7
spec/outputs/unless_else.lua
Normal file
7
spec/outputs/unless_else.lua
Normal file
@ -0,0 +1,7 @@
|
||||
if a then
|
||||
if not (b) then
|
||||
return print("hi")
|
||||
elseif c then
|
||||
return print("not hi")
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user