ivar tests work

bit of slot find replace
This commit is contained in:
Torsten Ruger
2018-03-15 20:55:23 +05:30
parent 4a79d20a40
commit ff6d84a09b
10 changed files with 19 additions and 19 deletions

View File

@ -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