Open jjttjj opened 4 years ago
(= (dc/decimal 123) :x) results in
(= (dc/decimal 123) :x)
#object[Error Error: [DecimalError] Invalid argument: :x]
Due to the IEquiv implementation here: https://github.com/funcool/decimal/blob/c0bee2ee62c62a3ba2a80008ec02e01daa0a736e/src/decimal/core.cljs#L752
It should check that the thing being compared is a number or decimal type.
I will send a PR soon.
We have seen the same with not=
not=
(= (dc/decimal 123) :x)
results inDue to the IEquiv implementation here: https://github.com/funcool/decimal/blob/c0bee2ee62c62a3ba2a80008ec02e01daa0a736e/src/decimal/core.cljs#L752
It should check that the thing being compared is a number or decimal type.
I will send a PR soon.