3a50b7dd0e
really did div4
22 lines
433 B
Ruby
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
|