Torsten Rüger
5a43cbff15
previous commit affected rather many test, as the implicit returns add extra instructions Also added some explicit returns, so as not to test the return logic too much. return (ie return nl) is a knonwn 3 risc operation.
19 lines
327 B
Ruby
19 lines
327 B
Ruby
require_relative "helper"
|
|
|
|
module Vool
|
|
class TestSendSimpleMom < MiniTest::Test
|
|
include SimpleSendHarness
|
|
|
|
def send_method
|
|
"5.div4;return"
|
|
end
|
|
def receiver
|
|
[Mom::IntegerConstant , 5]
|
|
end
|
|
def test_call_has_right_method
|
|
assert_equal :div4, @ins.next(2).method.name
|
|
end
|
|
|
|
end
|
|
end
|