Welcome! Please see the About page for a little more info on how this works.

0 votes
in data.int-map by

{{PersistentIntMap}} {{equals}} and {{equiv}} are currently broken for maps that have the same keys, but with different values:

`
clojure.data.int-map> (= (int-map 1 :foo)

                     (int-map 1 :bar))

;; => true
clojure.data.int-map> (.equals (int-map 1 :foo)

                           (int-map 1 :bar))

;; => true
`

The bug was introduced in (link: https://github.com/clojure/data.int-map/commit/fccd5e4bd1dc42b8ea50c80081e785ea68f36dd6 text: this commit) addressing (link: https://dev.clojure.org/jira/browse/DIMAP-11 text: DIMAP-11).

Cause/fix is simple, see attached patch.

2 Answers

0 votes
by

Comment made by: ztellman

Thank you, I'm not sure how this got past the test suite. I'll update the issue once a new release is out.

0 votes
by
Reference: https://clojure.atlassian.net/browse/DIMAP-15 (reported by ragge)
...