ivar tests work
bit of slot find replace
This commit is contained in:
@ -23,7 +23,7 @@ module Vool
|
||||
assert_equal Mom::NotSameCheck , @first.condition.class , @first
|
||||
end
|
||||
def test_if_true_moves_type
|
||||
assert_equal @first.if_true[0].class, Mom::SlotMove , @first.if_true.to_rxf
|
||||
assert_equal @first.if_true[0].class, Mom::SlotLoad , @first.if_true.to_rxf
|
||||
end
|
||||
def test_if_true_resolves_setup
|
||||
assert_equal @first.if_true[1].class , Mom::MessageSetup, @first.if_true.to_rxf
|
||||
@ -35,7 +35,7 @@ module Vool
|
||||
assert_equal @first.if_true[3].class , Mom::SimpleCall, @first.if_true.to_rxf
|
||||
end
|
||||
def test_if_true_resolves_move
|
||||
assert_equal @first.if_true[4].class , Mom::SlotMove, @first.if_true.to_rxf
|
||||
assert_equal @first.if_true[4].class , Mom::SlotLoad, @first.if_true.to_rxf
|
||||
end
|
||||
|
||||
def test_setup_second
|
||||
@ -51,7 +51,7 @@ module Vool
|
||||
end
|
||||
|
||||
def test_array
|
||||
check_array [SlotConstant,NotSameCheck,Label,SlotMove,MessageSetup,ArgumentTransfer,SimpleCall,SlotMove,Label,MessageSetup,ArgumentTransfer,DynamicCall] , @stats
|
||||
check_array [SlotLoad,NotSameCheck,Label,SlotLoad,MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,Label,MessageSetup,ArgumentTransfer,DynamicCall] , @stats
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -20,7 +20,7 @@ module Vool
|
||||
end
|
||||
|
||||
def test_arg_one
|
||||
assert_equal Mom::SlotConstant, @stats[1].arguments[0].class
|
||||
assert_equal Mom::SlotLoad, @stats[1].arguments[0].class
|
||||
end
|
||||
def test_call_two
|
||||
assert_equal Mom::SimpleCall, @stats[2].class
|
||||
|
Reference in New Issue
Block a user