introduce return_sequence instruction to mom

This commit is contained in:
Torsten Ruger
2017-04-14 21:01:50 +03:00
parent 68944a0168
commit 265b25d5f4
4 changed files with 35 additions and 4 deletions

View File

@ -15,10 +15,16 @@ module Vool
def test_slot_is_set
assert @stats.first.left
end
def test_two_instructions_are_returned
assert_equal 2 , @stats.length
end
def test_second_is_return
assert_equal Mom::ReturnSequence, @stats.last.class
end
def test_slot_starts_at_message
assert_equal :message , @stats.first.left[0]
end
def test_slot_gets_self
def test_slot_gets_return
assert_equal :return_value , @stats.first.left[1]
end
def test_slot_assigns_something