rubyx/test/vool/test_class_statement.rb
Torsten Ruger 35b10c46a3 adds the risc instructions to the compiler
since they are not in the method anymore
2018-07-01 11:59:52 +03:00

21 lines
431 B
Ruby

require_relative "helper"
module Vool
class TestClassStatement < MiniTest::Test
include MomCompile
def setup
Parfait.boot!
@ret = compile_mom( "class Test ; def main(); return 1; end; end;")
end
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