adds the risc instructions to the compiler

since they are not in the method anymore
This commit is contained in:
Torsten Ruger
2018-07-01 11:59:52 +03:00
parent 22b1fea587
commit 35b10c46a3
4 changed files with 59 additions and 16 deletions

View File

@ -7,11 +7,14 @@ module Vool
def setup
Parfait.boot!
@ins = compile_mom( "class Test ; def main(); return 1; end; end;")
@ret = compile_mom( "class Test ; def main(); return 1; end; end;")
end
def test_return
assert_equal Mom::ClassCompiler , @ins.class
def test_return_class
assert_equal Mom::ClassCompiler , @ret.class
end
def test_has_compilers
assert_equal Risc::MethodCompiler , @ret.method_compilers.first.class
end
end
end