rubyx/test/risc/interpreter/blocks/test_call_simple.rb
Torsten Ruger 81cc109d1e more block tests
instance and arg access
2018-07-31 19:44:40 +03:00

16 lines
297 B
Ruby

require_relative "../helper"
module Risc
class BlockCallSimple < MiniTest::Test
include Ticker
def setup
@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