rubyx/test/mom/test_class_statement.rb
Torsten Rüger 2eb9364283 make mom:method_compiler a list
Compilers forms alist by Util::CompilerList
Change Collection to use the list instead of array
2019-09-28 12:41:38 +03:00

25 lines
487 B
Ruby

require_relative "helper"
module Vool
class TestClassStatementMom < MiniTest::Test
include MomCompile
def setup
@ret = compile_mom( as_main("return 1"))
end
def test_return_class
assert_equal Mom::MomCollection , @ret.class
end
def test_has_compilers
assert_equal Mom::MethodCompiler , @ret.method_compilers.class
end
def test_constant
assert @ret.method_compilers.add_constant( Parfait::Integer.new(5) )
end
end
end