be10e8c6af
for statement tests and write mom tests also implement to_mom and fix local (self) bug
15 lines
317 B
Ruby
15 lines
317 B
Ruby
require_relative "../helper"
|
|
|
|
module MomCompile
|
|
include CompilerHelper
|
|
|
|
def compile_first_method input
|
|
lst = Vool::VoolCompiler.compile as_main( input )
|
|
assert_equal Parfait::Class , lst.clazz.class , input
|
|
method = lst.clazz.get_method(:main)
|
|
assert method
|
|
lst.to_mom( nil ).first
|
|
end
|
|
|
|
end
|