remove duplicate tests
This commit is contained in:
@ -6,7 +6,7 @@ module Vool
|
||||
|
||||
def setup
|
||||
Risc.machine.boot
|
||||
@stats = compile_first_method( "arg.mod4").first
|
||||
@stats = compile_first_method_flat( "a = 5; a.mod4")
|
||||
@first, @second , @third ,@fourth= @stats[0],@stats[1],@stats[2],@stats[3]
|
||||
end
|
||||
|
||||
@ -50,5 +50,9 @@ module Vool
|
||||
assert_equal Mom::DynamicCall , @fourth.class , @fourth.to_rxf
|
||||
end
|
||||
|
||||
def test_array
|
||||
check_array [SlotConstant,NotSameCheck,Label,SlotMove,MessageSetup,ArgumentTransfer,SimpleCall,SlotMove,Label,MessageSetup,ArgumentTransfer,DynamicCall] , @stats
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -22,5 +22,8 @@ module Vool
|
||||
assert_equal Mom::IntegerConstant, @stats[1].arguments[1].right.class
|
||||
assert_equal 2, @stats[1].arguments[1].right.value
|
||||
end
|
||||
def test_array
|
||||
check_array [MessageSetup,ArgumentTransfer,SimpleCall] , @stats
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,5 +26,8 @@ module Vool
|
||||
def test_nothing_hoisted
|
||||
assert_nil @first.hoisted , @stats
|
||||
end
|
||||
def test_array
|
||||
check_array [SlotMove,TruthCheck,Label,MessageSetup,ArgumentTransfer,SimpleCall,Label], @stats
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,5 +26,8 @@ module Vool
|
||||
def test_nothing_hoisted
|
||||
assert_nil @first.hoisted , @stats
|
||||
end
|
||||
def test_array
|
||||
check_array [Label,SlotMove,TruthCheck,Label] , @stats
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user