rubyx/test/vool/test_class_statement.rb
Torsten Ruger b9caad937a rename bools compiler to ruby_compiler
as that is what is does, compile ruby strings into vool st
2017-04-06 15:36:41 +03:00

29 lines
529 B
Ruby

require_relative "helper"
module Vool
class TestClassStatement < MiniTest::Test
def setup
input = "class Tryout < Base;end"
@lst = RubyCompiler.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
def test_compile_class_body
assert_equal [] , @lst.body
end
end
end