diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-07-31 15:12:57 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-07-31 15:14:51 +0900 |
commit | 40651cf1f567ae728c8d2cc908017c31e1000b6e (patch) | |
tree | 5426d38dba54cd5a45c7d6c025e756d4f976497f | |
parent | 5f95edb7af68ce03732da4d49eee8d6ee87ef544 (diff) | |
download | ruby-40651cf1f567ae728c8d2cc908017c31e1000b6e.tar.gz |
delete a check on bad assumption.
If object was modified, but there is a case that
hash values (#hash) are same between before modified
and after modified objects.
-rw-r--r-- | spec/ruby/core/hash/rehash_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/core/hash/rehash_spec.rb b/spec/ruby/core/hash/rehash_spec.rb index 9816648f08..2af287cd70 100644 --- a/spec/ruby/core/hash/rehash_spec.rb +++ b/spec/ruby/core/hash/rehash_spec.rb @@ -10,7 +10,11 @@ describe "Hash#rehash" do h[k2] = 1 k1 << 2 - h.key?(k1).should == false + + # if k1 is modified to k1', k1.hash and k1'.hash can be same. + # So this test has an issue. For the present, this line is commented out. + # h.key?(k1).should == false + h.keys.include?(k1).should == true h.rehash.should equal(h) |