Only add Builtin methods that are not in the current compilation
Current bug looks like the original main is used in parts (not the compiled one, but the builtin on)
This commit is contained in:
@ -5,10 +5,10 @@ module Parfait
|
||||
|
||||
def setup
|
||||
super
|
||||
obj = Parfait.object_space.get_class_by_name(:Object).instance_type
|
||||
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::TypedMethod.new( obj , :meth , args , frame)
|
||||
@obj = Parfait.object_space.get_class_by_name(:Object).instance_type
|
||||
@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::TypedMethod.new( @obj , :meth , @args , @frame)
|
||||
end
|
||||
|
||||
def test_method_name
|
||||
@ -95,5 +95,12 @@ module Parfait
|
||||
def test_created_with_binary
|
||||
assert @method.binary
|
||||
end
|
||||
def test_equal
|
||||
assert_equal @method , @method
|
||||
end
|
||||
def test_not_equal
|
||||
method = Parfait::TypedMethod.new( @obj , :other , @args , @frame)
|
||||
assert @method != method
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user