Skip to content

Commit

Permalink
follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFreitag committed Oct 31, 2023
1 parent 350c1d8 commit eb1ec73
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ifelif.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"if/ef: if block"
"if/ef: ef block"
nil
10 changes: 10 additions & 0 deletions tests/ifelif.rl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
i = 0
while (i<2)
if (i==0)
puts("if/elif: if block")
elif (i==1)
puts("if/elif: elif block")
end

i = i+1
end
5 changes: 5 additions & 0 deletions tests/ifelifelifelse.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"if/ef/el: if block"
"if/ef/ef/el: first ef block"
"if/ef/ef/el: second ef block"
"if/ef/else: else block"
nil
14 changes: 14 additions & 0 deletions tests/ifelifelifelse.rl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
i = 0
while (i<4)
if (i==0)
puts("if/elif/el: if block")
elif (i==1)
puts("if/elif/elif/el: first elif block")
elif (i==2)
puts("if/elif/elif/el: second elif block")
else
puts("if/elif/else: else block")
end

i = i+1
end
4 changes: 4 additions & 0 deletions tests/ifelifelse.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"if/ef/el: if block"
"if/ef/el: ef block"
"if/ef/el: else block"
nil
12 changes: 12 additions & 0 deletions tests/ifelifelse.rl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i = 0
while (i<3)
if (i==0)
puts("if/elif/el: if block")
elif (i==1)
puts("if/elif/el: elif block")
else
puts("if/elif/el: else block")
end

i = i+1
end

0 comments on commit eb1ec73

Please sign in to comment.