fix bug in slot_load and definition

move parfait helper for reuse
This commit is contained in:
Torsten Ruger
2018-08-19 15:36:51 +03:00
parent 253d2fead8
commit f85fe8a2cb
7 changed files with 73 additions and 24 deletions

View File

@ -1,17 +1 @@
require_relative "../helper"
module Parfait
class ParfaitTest < MiniTest::Test
def setup
Parfait.boot!
@space = Parfait.object_space
end
def make_method
@obj = Parfait.object_space.get_type_by_class_name(:Object)
@args = Parfait::Type.for_hash( @obj.object_class , { bar: :Integer , foo: :Type})
@frame = Parfait::Type.for_hash( @obj.object_class , { local_bar: :Integer , local_foo: :Type})
@method = Parfait::CallableMethod.new( :meth , @obj , @args , @frame)
end
end
end