fix use of slot_constant vs slot_move

wip
This commit is contained in:
Torsten Ruger
2017-09-10 12:57:25 +03:00
parent a523af14f1
commit 66901eeb5b
14 changed files with 43 additions and 24 deletions

View File

@ -13,7 +13,7 @@ module Vool
assert Array != @stats.class , @stats
end
def test_class_compiles
assert_equal Mom::SlotConstant , @stats.first.class , @stats
assert_equal Mom::SlotMove , @stats.first.class , @stats
end
def test_slot_is_set
assert @stats.first.left
@ -22,7 +22,7 @@ module Vool
assert_equal 2 , @stats.length
end
def test_receiver_move_class
assert_equal Mom::SlotConstant, @stats.first.class
assert_equal Mom::SlotMove, @stats.first.class
end
def test_receiver_move
assert_equal :receiver, @stats.first.left[2]