Bug #18

Nested hash failure in Hash#[]

Added by Daniel Berger 160 days ago. Updated 160 days ago.

Status:New Start:02/19/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Core Class Spent time: -
Target version:1.0

Description

This test fails in test_aref.rb. I suspect it's because of the hash slicing code, but I'm not positive.
test "aref with nested hash returns expected result" do
  hash = {{:a, 1}, {:b, 2}}
  assert_equal({:b, 2}, hash[{:a, 1}])
end

History

Updated by Daniel Berger 160 days ago

  • Subject changed from Nest hash failure in Hash#[] to Nested hash failure in Hash#[]

Actually, I think this is a bug of 1.8.6 that was fixed in 1.8.7.

Also available in: Atom PDF