Skip to content

Dictionary cannot contain 'nil' key #7

@alexnixon

Description

@alexnixon

The following does not work:

require 'rubygems'
require 'hashery'

d = Dictionary.new
d[0] = 1
d[nil] = 2
d.order_by_key

=>ArgumentError: comparison of Fixnum with nil failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions