More tests and compiling parfait object

This commit is contained in:
2019-09-19 17:41:26 +03:00
parent fd46826b9c
commit 1e2c4d6678
5 changed files with 94 additions and 3 deletions

View File

@ -2,7 +2,7 @@ require_relative "../helper"
module RubyX
class TestObjectCompile #< MiniTest::Test
class TestObjectCompile < MiniTest::Test
include ParfaitHelper
include Preloader

View File

@ -26,7 +26,7 @@ module RubyX
assert_equal 3 , linker.assemblers.length
end
end
class TestRubyXCompilerParfait #< MiniTest::Test
class TestRubyXCompilerParfait < MiniTest::Test
include ScopeHelper
include RubyXHelper
@ -38,7 +38,6 @@ module RubyX
def test_load
object = Parfait.object_space.get_class_by_name(:Object)
#object.methods.each_method {|m| puts m.name}
assert_equal Parfait::VoolMethod , object.get_method(:set_type).class
assert_equal Parfait::CallableMethod , object.instance_type.get_method(:set_type).class
end