ended up not even using the class, it just came from there It actually compiles methods, and it turns out is the point where builtin comes into the picture as it's boot process also returns method compilers
21 lines
429 B
Ruby
21 lines
429 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::MomCompiler , @ret.class
|
|
end
|
|
def test_has_compilers
|
|
assert_equal Risc::MethodCompiler , @ret.method_compilers.first.class
|
|
end
|
|
end
|
|
end
|