fix inital main (again)

stop even compiling a fake main if a real exists (in builtin)
previous version was still buggy: using builting methods types (especially locals) even comiled version had different
This commit is contained in:
Torsten Ruger
2018-07-04 09:17:30 +03:00
parent 6f936f190d
commit d8b58d8da6
3 changed files with 11 additions and 14 deletions

View File

@ -13,10 +13,10 @@ module Mom
assert_equal MomCompiler , @comp.class
end
def test_compilers
assert_equal 24 , @comp.method_compilers.length
assert_equal 23 , @comp.method_compilers.length
end
def test_compilers_bare
assert_equal 23 , MomCompiler.new.method_compilers.length
assert_equal 22 , MomCompiler.new.method_compilers.length
end
def test_returns_constants
assert_equal Array , @comp.constants.class