diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-21 18:06:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-21 18:06:04 +0000 |
commit | a7955b31c04a2a66ad1ac270b7dd8a85ea48f52a (patch) | |
tree | e04baa52437bd1de060708457b06174627f066da /test/ruby/test_struct.rb | |
parent | f73e6f5a537dc8cb8859101ad1b76860ed382b19 (diff) | |
download | ruby-a7955b31c04a2a66ad1ac270b7dd8a85ea48f52a.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_struct.rb')
-rw-r--r-- | test/ruby/test_struct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |