aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_integer_comb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_integer_comb.rb')
-rw-r--r--test/ruby/test_integer_comb.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_integer_comb.rb b/test/ruby/test_integer_comb.rb
index b18de94feb..8c5cba2b1e 100644
--- a/test/ruby/test_integer_comb.rb
+++ b/test/ruby/test_integer_comb.rb
@@ -114,17 +114,17 @@ class TestIntegerComb < Test::Unit::TestCase
FIXNUM_MAX = Integer::FIXNUM_MAX
def test_fixnum_range
- assert_instance_of(Bignum, FIXNUM_MIN-1)
- assert_instance_of(Fixnum, FIXNUM_MIN)
- assert_instance_of(Fixnum, FIXNUM_MAX)
- assert_instance_of(Bignum, FIXNUM_MAX+1)
+ assert_bignum(FIXNUM_MIN-1)
+ assert_fixnum(FIXNUM_MIN)
+ assert_fixnum(FIXNUM_MAX)
+ assert_bignum(FIXNUM_MAX+1)
end
def check_class(n)
if FIXNUM_MIN <= n && n <= FIXNUM_MAX
- assert_instance_of(Fixnum, n)
+ assert_fixnum(n)
else
- assert_instance_of(Bignum, n)
+ assert_bignum(n)
end
end