Bug #18
Nested hash failure in Hash#[]
| 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.