rubyx/test/vool/test_class_statement.rb
Torsten Ruger 295782d9e6 start on vool, the virtual oo language
start with syntax tree, not linked into existing code until finished
2017-04-01 15:57:39 +03:00

25 lines
453 B
Ruby

require_relative "../helper"
module Vool
class TestClassStatement < MiniTest::Test
def setup
input = "class Tryout < Base;end"
@lst = Compiler.compile( input )
end
def test_compile_class
assert_equal ClassStatement , @lst.class
end
def test_compile_class_name
assert_equal :Tryout , @lst.name
end
def test_compile_class_super
assert_equal :Base , @lst.super_class_name
end
end
end