diff options
-rw-r--r-- | test/ruby/test_complex.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_range.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_rational.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_struct.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 9063149484..6d189f46dd 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -48,8 +48,8 @@ class Complex_Test < Test::Unit::TestCase end def test_hash - assert_fixnum(Complex(1,2).hash) - assert_fixnum(Complex(1.0,2.0).hash) + assert_kind_of(Integer, Complex(1,2).hash) + assert_kind_of(Integer, Complex(1.0,2.0).hash) h = {} h[Complex(0)] = 0 diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 2bff105936..bba7726112 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -138,7 +138,7 @@ class TestRange < Test::Unit::TestCase end def test_hash - assert_fixnum((0..1).hash) + assert_kind_of(Integer, (0..1).hash) assert_equal((0..1).hash, (0..1).hash) assert_not_equal((0..1).hash, (0...1).hash) end diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index a87eb863eb..07d0ae5688 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -42,7 +42,7 @@ class Rational_Test < Test::Unit::TestCase end def test_hash - assert_fixnum(Rational(1,2).hash) + assert_kind_of(Integer, Rational(1,2).hash) h = {} h[Rational(0)] = 0 diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 86b7e3f0a7..9047e81bbe 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -248,7 +248,7 @@ module TestStruct def test_hash klass = @Struct.new(:a) o = klass.new(1) - assert_fixnum(o.hash) + assert_kind_of(Integer, o.hash) end def test_eql |