Get rid of defining methods for tests in core classes

Not to interfere in other tests.
This commit is contained in:
Nobuyoshi Nakada 2021-01-08 19:07:16 +09:00
parent 161a20df28
commit 590dc06e38
Notes: git 2021-01-09 22:38:31 +09:00
26 changed files with 406 additions and 392 deletions

View file

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