Skip to content

Hash#hash fails when keys & values are the same #1590

@kerinin

Description

@kerinin

Using jruby-1.7.9 in 1.9-mode built from ruby-build on OSX.

{:foo => :foo}.hash                # => 1
{:bar => :bar}.hash                # => 1
{:foo => :foo, :bar => :bar}.hash  # => 2
{:baz => :baz, :qux => :qux}.hash  # => 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions