summaryrefslogtreecommitdiff
path: root/test/-ext-/num2int/test_num2int.rb
diff options
context:
space:
mode:
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