get the label int to work consistently
still need to use it in the return
This commit is contained in:
15
test/support/fake_int.rb
Normal file
15
test/support/fake_int.rb
Normal file
@ -0,0 +1,15 @@
|
||||
class FakeInt
|
||||
attr_reader :value
|
||||
def initialize(val)
|
||||
set_value(val)
|
||||
end
|
||||
def is_a?(clazz)
|
||||
clazz == Parfait::Integer
|
||||
end
|
||||
def byte_length
|
||||
4
|
||||
end
|
||||
def set_value(val)
|
||||
@value = val
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user