set up ivar_assignment correctly

for statement tests
and write mom tests
also implement to_mom
and fix local (self) bug
This commit is contained in:
Torsten Ruger
2017-04-12 20:29:45 +03:00
parent 87133722b3
commit be10e8c6af
10 changed files with 62 additions and 17 deletions

View File

@ -1 +1,14 @@
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