rubyx/test/vool/to_mom/send/test_send_simple.rb
2018-03-16 10:32:11 +05:30

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.mod4")
end
def receiver
[Mom::IntegerConstant , 5]
end
def test_call_has_right_method
assert_equal :mod4, @ins.next(3).method.name
end
end
end