rubyx/test/ruby/test_yield_statement.rb
2018-07-19 16:30:36 +03:00

19 lines
366 B
Ruby

require_relative "helper"
module Ruby
class TestYieldStatement < MiniTest::Test
include RubyTests
def setup()
input = "yield(0) "
@lst = compile( input )
end
def test_block
assert_equal YieldStatement , @lst.class
end
def test_block_args
assert_equal IntegerConstant , @lst.arguments.first.class
end
end
end