aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_integer_comb.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 16:01:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 16:01:36 +0000
commitc93912d4e139fd8804e67c96c4be6d40f61bd02b (patch)
treea65231b29a12a7fb124fe148d427da7967bc1fee /test/ruby/test_integer_comb.rb
parent0e19bb2e32a13633ad8a316664c713c978026a74 (diff)
downloadruby-c93912d4e139fd8804e67c96c4be6d40f61bd02b.tar.gz
test/lib/test/unit/assertions.rb defines assert_fixnum and assert_bignum.
* test/lib/test/unit/assertions.rb (assert_fixnum): Defined. (assert_bignum): Defined. * test/ruby/test_bignum.rb: Use assert_bignum. * test/ruby/test_integer_comb.rb: Use assert_fixnum and assert_bignum. * test/ruby/test_optimization.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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