Torsten Rüger
12b29285d7
so many relied (implicitly( on some builtin function after all can't do much in ruby without calling Now all those dependencies are explicit Small risc changes come because the macro version has a return label and unreachable label
17 lines
329 B
Ruby
17 lines
329 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class BlockCallSimple < MiniTest::Test
|
|
include Ticker
|
|
def setup
|
|
@preload = "Integer.div4"
|
|
@string_input = block_main("a = yielder {return 16.div4} ; return a")
|
|
super
|
|
end
|
|
def test_chain
|
|
run_all
|
|
assert_equal 4 , get_return
|
|
end
|
|
end
|
|
end
|