fix slot_moves for sending, receiver and args

This commit is contained in:
Torsten Ruger
2017-09-10 13:14:51 +03:00
parent 43d660d2d2
commit c245acbdd3
5 changed files with 16 additions and 14 deletions

View File

@ -13,13 +13,13 @@ module Vool
assert_equal Mom::Statements , @stats.class
end
def test_class_compiles
assert_equal Mom::SlotMove , @stats.first.class , @stats
assert_equal Mom::SlotConstant , @stats.first.class , @stats
end
def test_four_instructions_are_returned
assert_equal 4 , @stats.length
end
def test_receiver_move
assert_equal Mom::SlotMove, @stats[0].class
assert_equal Mom::SlotConstant, @stats[0].class
assert_equal :receiver, @stats[0].left[2]
end
def test_receiver