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