summaryrefslogtreecommitdiff
path: root/test/-ext-/num2int/test_num2int.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-08 19:07:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-09 22:38:06 +0900
commit590dc06e3840cc7b00d80ccaac9fbf42573428f8 (patch)
treee5f6aa316246401b8d89e7419ddf0976238c04b5 /test/-ext-/num2int/test_num2int.rb
parent161a20df28dd09ff35a32a7e2b7ce6cab7079707 (diff)
Get rid of defining methods for tests in core classes
Not to interfere in other tests.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4043
Diffstat (limited to 'test/-ext-/num2int/test_num2int.rb')
-rw-r--r--test/-ext-/num2int/test_num2int.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/num2int/test_num2int.rb b/test/-ext-/num2int/test_num2int.rb
index 5d310af..1ab1390 100644
--- a/test/-ext-/num2int/test_num2int.rb
+++ b/test/-ext-/num2int/test_num2int.rb
@@ -101,7 +101,7 @@ class TestNum2int < Test::Unit::TestCase
end
def assert_fix2i_success(type, num, result=num)
- return if !num.fixnum?
+ return unless Bug::Integer.fixnum?(num)
func = "FIX2#{type}".upcase
assert_fix2i_success_internal(result.to_s, func, num)
end
@@ -113,7 +113,7 @@ class TestNum2int < Test::Unit::TestCase
end
def assert_fix2i_error(type, num)
- return if !num.fixnum?
+ return unless Bug::Integer.fixnum?(num)
func = "FIX2#{type}".upcase
assert_num2i_error_internal(func, num)
end