rubyx/test/vool/to_mom/helper.rb

15 lines
324 B
Ruby
Raw Normal View History

require_relative "../helper"
module MomCompile
include CompilerHelper
def compile_first_method input
2017-04-13 13:14:43 +02:00
lst = Vool::VoolCompiler.compile as_test_main( input )
assert_equal Parfait::Class , lst.clazz.class , input
2017-04-13 13:14:43 +02:00
@method = lst.clazz.get_method(:main)
assert @method
lst.to_mom( nil ).first
end
end