summaryrefslogtreecommitdiff
path: root/test/ruby/test_rational.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-21 18:06:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-21 18:06:04 +0000
commita7955b31c04a2a66ad1ac270b7dd8a85ea48f52a (patch)
treee04baa52437bd1de060708457b06174627f066da /test/ruby/test_rational.rb
parentf73e6f5a537dc8cb8859101ad1b76860ed382b19 (diff)
hash method values
* test/ruby/test_{complex,range,rational,struct}.rb (test_hash): hash values should be an Integer, not only a Fixnum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rational.rb')
-rw-r--r--test/ruby/test_rational.rb2
1 files changed, 1 insertions, 1 deletions
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