mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
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
This commit is contained in:
parent
f73e6f5a53
commit
a7955b31c0
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue