Skip to content

Equality is broken for non decimal types  #10

Open
@jjttjj

Description

@jjttjj

(= (dc/decimal 123) :x)
results in

#object[Error Error: [DecimalError] Invalid argument: :x]

Due to the IEquiv implementation here:

(.eq v other)))

It should check that the thing being compared is a number or decimal type.

I will send a PR soon.

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