fix while statements each
wasn’t picking up condition
This commit is contained in:
parent
c8980595a3
commit
8bac096f74
@ -29,7 +29,7 @@ module Vool
|
|||||||
|
|
||||||
def each(&block)
|
def each(&block)
|
||||||
block.call(self)
|
block.call(self)
|
||||||
@condition.each(&block)
|
block.call(@condition)
|
||||||
@body.each(&block)
|
@body.each(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -11,9 +11,6 @@ module Vool
|
|||||||
@ins = compile_first_method( "while(@a) ; 5.mod4 ; end")
|
@ins = compile_first_method( "while(@a) ; 5.mod4 ; end")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_compiles_not_array
|
|
||||||
assert Array != @ins.class , @ins
|
|
||||||
end
|
|
||||||
def test_compiles_as_while
|
def test_compiles_as_while
|
||||||
assert_equal Label , @ins.class , @ins
|
assert_equal Label , @ins.class , @ins
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user