rubyx/test/vool/to_mom/send/test_send_simple.rb
Torsten Ruger 3a50b7dd0e fix mod4 name
really did div4
2018-04-19 10:00:55 +03:00

22 lines
433 B
Ruby

require_relative "../helper"
require_relative "simple_send_harness"
module Vool
class TestSendSimpleMom < MiniTest::Test
include MomCompile
include SimpleSendHarness
def setup
Risc.machine.boot
@ins = compile_first_method( "5.div4")
end
def receiver
[Mom::IntegerConstant , 5]
end
def test_call_has_right_method
assert_equal :div4, @ins.next(2).method.name
end
end
end