rubyx/test/vool/send/test_send_simple.rb
Torsten Rüger 5a43cbff15 Fixing tests for implicit return
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.
2019-08-17 23:29:42 +03:00

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