start on class compiler
idea is to get cleaner layer seperation reduce machine and rework builtin boot
This commit is contained in:
17
test/vool/test_class_statement.rb
Normal file
17
test/vool/test_class_statement.rb
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
require_relative "helper"
|
||||
|
||||
module Vool
|
||||
class TestClassStatement < MiniTest::Test
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@ins = compile_mom( "class Test ; def main(); return 1; end; end;")
|
||||
end
|
||||
|
||||
def test_return
|
||||
assert_equal Mom::ClassCompiler , @ins.class
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user