fix all tests accordingly to new return
This commit is contained in:
@ -20,7 +20,7 @@ module Vool
|
||||
assert_equal 2 , @inst.length
|
||||
end
|
||||
def test_second_is_return
|
||||
assert_equal ReturnSequence, @inst.last.class
|
||||
assert_equal ReturnJump, @inst.last.class
|
||||
end
|
||||
def test_slot_starts_at_message
|
||||
assert_equal :message , @inst.left.known_object
|
||||
@ -49,10 +49,10 @@ module Vool
|
||||
end
|
||||
|
||||
def test_return_is_last
|
||||
assert_equal ReturnSequence , @ins.last.class
|
||||
assert_equal ReturnJump , @ins.last.class
|
||||
end
|
||||
def test_array
|
||||
check_array [MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,SlotLoad,ReturnSequence] , @ins
|
||||
check_array [MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,SlotLoad,ReturnJump] , @ins
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -51,7 +51,7 @@ module Vool
|
||||
assert @ins.next(6).right.slots.last.to_s.start_with?("tmp_")
|
||||
end
|
||||
def test_return
|
||||
assert_equal ReturnSequence, @ins.next(7).class
|
||||
assert_equal ReturnJump, @ins.next(7).class
|
||||
end
|
||||
end
|
||||
class TestYieldArgsSendMom < MiniTest::Test
|
||||
@ -65,7 +65,7 @@ module Vool
|
||||
|
||||
def test_array
|
||||
check_array [NotSameCheck, Label, MessageSetup, ArgumentTransfer, BlockYield ,
|
||||
SlotLoad, SlotLoad, ReturnSequence] , @ins
|
||||
SlotLoad, SlotLoad, ReturnJump] , @ins
|
||||
end
|
||||
def test_transfer
|
||||
assert_equal ArgumentTransfer, @ins.next(3).class
|
||||
@ -88,7 +88,7 @@ module Vool
|
||||
end
|
||||
def test_array
|
||||
check_array [NotSameCheck, Label, MessageSetup, ArgumentTransfer, BlockYield ,
|
||||
SlotLoad, SlotLoad, ReturnSequence] , @ins
|
||||
SlotLoad, SlotLoad, ReturnJump] , @ins
|
||||
end
|
||||
def test_transfer
|
||||
assert_equal ArgumentTransfer, @ins.next(3).class
|
||||
|
Reference in New Issue
Block a user