1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/lib/-test-/integer.rb
Nobuyoshi Nakada 590dc06e38 Get rid of defining methods for tests in core classes
Not to interfere in other tests.
2021-01-09 22:38:06 +09:00

14 lines
340 B
Ruby

require 'test/unit'
require '-test-/integer.so'
module Test::Unit::Assertions
def assert_fixnum(v, msg=nil)
assert_instance_of(Integer, v, msg)
assert_send([Bug::Integer, :fixnum?, v], msg)
end
def assert_bignum(v, msg=nil)
assert_instance_of(Integer, v, msg)
assert_send([Bug::Integer, :bignum?, v], msg)
end
end