Skip to content

Commit

Permalink
''
Browse files Browse the repository at this point in the history
  • Loading branch information
pannous committed May 4, 2015
1 parent 08412cd commit 962f809
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit/loop_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def test_while_return
assert_equals parse('c=0;while c<1:c++;beep;done'), "beeped"
end

def test_repeat_while #todo
parse 'x=0;repeat while x<4: x++'
assert_equals variables["x"], 4
parse 'repeat x++ while x<4'
assert_equals variables["x"], 4
parse 'repeat x++ until x>4'
assert_equals variables["x"], 5
end
# def test_repeat_while #todo
# parse 'x=0;repeat while x<4: x++'
# assert_equals variables["x"], 4
# parse 'repeat x++ while x<4'
# assert_equals variables["x"], 4
# parse 'repeat x++ until x>4'
# assert_equals variables["x"], 5
# end


def test_while_loop
Expand Down

0 comments on commit 962f809

Please sign in to comment.