We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73447c5 commit 8a27f89Copy full SHA for 8a27f89
1 file changed
src/test/cljs/cljs/core_test.cljs
@@ -1308,6 +1308,18 @@
1308
(is (not= r sm))
1309
(is (not= sm r)))))
1310
1311
+(deftype MapWithNoIKVReduce [backing-map]
1312
+ IMap
1313
+ (-dissoc [_ _] nil)
1314
+
1315
+ ISeqable
1316
+ (-seq [_] (seq backing-map)))
1317
1318
+(deftest test-cljs-2083
1319
+ (testing "maps which do not implement IKVReduce can be compared"
1320
+ (is (true? (equiv-map (MapWithNoIKVReduce. {:a 1 :b 2 :c 3}) {:a 1 :b 2 :c 3})))
1321
+ (is (false? (equiv-map (MapWithNoIKVReduce. {:a 1 :b 2 :c 3}) {:a 1 :b 2 :c 4})))))
1322
1323
(comment
1324
;; ObjMap
1325
;; (let [ks (map (partial str "foo") (range 500))
0 commit comments