more block tests
instance and arg access
This commit is contained in:
15
test/risc/interpreter/blocks/test_call_simple.rb
Normal file
15
test/risc/interpreter/blocks/test_call_simple.rb
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
Reference in New Issue
Block a user