aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_complex.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
commit73d3833c0a488cdb4f80049a58798ccb26a05289 (patch)
treee04baa52437bd1de060708457b06174627f066da /test/ruby/test_complex.rb
parenta7a1234541ced85781ba55603a89fac1a0af1c71 (diff)
downloadruby-73d3833c0a488cdb4f80049a58798ccb26a05289.tar.gz
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_complex.rb')
-rw-r--r--test/ruby/test_complex.rb4
1 files changed, 2 insertions, 2 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