Skip to content

hash definition is not correct #167

Open
@hyrodium

Description

@hyrodium

x-ref: #28 (comment)

julia> using IntervalSets

julia> hash(1..2)
0x3932a21170706f90

julia> hash(OpenInterval(1,2))  # should be different
0x3932a21170706f90

julia> isequal(2..1, 3..1)
true

julia> unique([2..1, 3..1])  # should be 1-element
2-element Vector{ClosedInterval{Int64}}:
 2 .. 1
 3 .. 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions