rubyx/test/sol/send/test_send_simple.rb
Torsten Rüger 3c762c4fe7 Rename SlotDefinition to Slot
And the derived XXDefinitions to XXSlot

Just to be more consistent
And possibly free the Definition for the Language side
2020-02-11 16:19:52 +07:00

22 lines
436 B
Ruby

require_relative "helper"
module Sol
class TestSendSimpleSlotMachine < MiniTest::Test
include SimpleSendHarness
def send_method
"5.div4;return"
end
def receiver
[SlotMachine::IntegerConstant , 5]
end
def test_call_has_right_method
assert_equal :div4, @ins.next(2).method.name
end
def test_receiver_move
assert_equal ConstantSlot, @ins.next.receiver.class
end
end
end