rubyx/test/vool/test_block_statement.rb
Torsten Ruger 3f80953385 passing compiler to to_mom, not method
To be able to delegate scope (block/method) things later
2018-07-05 14:02:38 +03:00

23 lines
425 B
Ruby

require_relative "helper"
module Vool
class TestBlockStatement < MiniTest::Test
include MomCompile
def setup
Parfait.boot!
@ret = compile_mom( as_test_main("self.main {|elem| elem } "))
end
def test_is_compiler
# assert_equal Mom::MomCompiler , @ret.class
end
def est_has_compilers
assert_equal Risc::MethodCompiler , @ret.method_compilers.first.class
end
end
end