added elif
This commit is contained in:
1
tests/else_if_shorthand.expected
Normal file
1
tests/else_if_shorthand.expected
Normal file
@@ -0,0 +1 @@
|
||||
second
|
||||
11
tests/else_if_shorthand.sl
Normal file
11
tests/else_if_shorthand.sl
Normal file
@@ -0,0 +1,11 @@
|
||||
import stdlib/stdlib.sl
|
||||
|
||||
word main
|
||||
10 1 < if
|
||||
"first" puts
|
||||
else 1 2 < if
|
||||
"second" puts
|
||||
else
|
||||
"third" puts
|
||||
end
|
||||
end
|
||||
1
tests/else_if_shorthand.test
Normal file
1
tests/else_if_shorthand.test
Normal file
@@ -0,0 +1 @@
|
||||
python main.py tests/else_if_shorthand.sl -o /tmp/else_if_shorthand > /dev/null && /tmp/else_if_shorthand
|
||||
Reference in New Issue
Block a user