Fixes for all test of next commit

This commit is contained in:
2020-02-17 14:27:42 +07:00
parent 21817b182e
commit 93103d551f
16 changed files with 109 additions and 62 deletions

View File

@ -17,7 +17,7 @@ module SolBlocks
assert_equal :message , @ins.left.known_object
end
def test_slots_left
assert_equal [:local1] , @ins.left.slots
assert_equal :local1 , @ins.left.slots.name
end
def test_slot_assigns_something
assert @ins.right
@ -36,10 +36,10 @@ module SolBlocks
assert_equal SlotMachine::SlotLoad , @ins.class , @ins
end
def test_slots_left
assert_equal [:local1] , @ins.left.slots
assert_equal :local1 , @ins.left.slots.name
end
def test_slots_right
assert_equal [:receiver, :a] , @ins.right.slots
assert_equal "receiver.a" , @ins.right.slots.to_s
end
end
@ -57,7 +57,7 @@ module SolBlocks
assert @ins.left
end
def test_slots_left
assert_equal [:caller,:caller, :arg1] , @ins.left.slots
assert_equal "caller.caller.arg1" , @ins.left.slots.to_s
end
end