Project

General

Profile

Bug #13146

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

```ruby
test
`test = {Float::NAN => 1, -Float::NAN => 2}
=> {NaN=>1, NaN=>2}

test.values_at(Float::NAN, -Float::NAN)
=> [1, nil]
```
nil]`

I don't know what the correct behaviour ought to be, but it seems inconsistent to create a hash with two elements but not be able to extract both values.

Back