moving vool_method to parfait

This commit is contained in:
Torsten Ruger
2017-12-10 20:47:26 +02:00
parent b7701d0d5e
commit bc5906fb83
10 changed files with 55 additions and 28 deletions

View File

@ -25,7 +25,7 @@ module MomCompile
lst = Vool::VoolCompiler.compile as_test_main( input )
assert_equal Parfait::Class , lst.clazz.class , input
@method = lst.clazz.get_method(:main)
assert @method
assert_equal Parfait::VoolMethod , @method.class
res = lst.to_mom( nil )
#puts "#{res.class}"
res.first
@ -40,7 +40,7 @@ module MomCompile
test = is
while(test)
# if we assert here, we get output pointing here. Without stack, not useful
raise "Wrong class for #{index+1}, #{dump(is)}" if should[index] != test.class
raise "Wrong class for #{index+1}, #{dump(is)}" if should[index] != test.class
index += 1
test = test.next
end