Skip to content

Inconsistent hash equality behavior #49

Description

@dmolesUC

Given:

a = EDTF.parse!("1972%")
b = EDTF.parse!("1972-XX-XX")
h = {a => 1, b => 2}

Expected behavior:

  1. a == b should be false
  2. h.size should be 2
  3. h[a] should be 1

Actual behavior:

  1. a == b is false (correct)
  2. h.size is 1 (incorrect)
  3. h[a] is 2 (incorrect)

Notes:

  • I can take a look at this some time in the next few weeks, just not right this minute

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions