mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
Get rid of defining methods for tests in core classes
Not to interfere in other tests.
This commit is contained in:
parent
161a20df28
commit
590dc06e38
Notes:
git
2021-01-09 22:38:31 +09:00
26 changed files with 406 additions and 392 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue