2018-07-31 18:44:40 +02:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
module Risc
|
|
|
|
class BlockCallSimple < MiniTest::Test
|
|
|
|
include Ticker
|
|
|
|
def setup
|
2019-09-13 13:07:12 +02:00
|
|
|
@preload = "Integer.div4"
|
2018-07-31 18:44:40 +02:00
|
|
|
@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
|