Skip to content

Commit df4a48b

Browse files
committed
add some unit tests
1 parent 38f93af commit df4a48b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/cljs/cljs/lite_collections_test.cljs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
(= 1 (aget (clj->js (obj-map :x 1)) "x"))
2929
(= 1 (aget (clj->js {:x 1}) "x")))
3030

31+
(deftest test-unchanged-identical?
32+
(let [m (obj-map :foo 1)]
33+
(identical? m (assoc m :foo 1)))
34+
(let [m (simple-hash-map :foo 1)]
35+
(identical? m (assoc m :foo 1)))
36+
(let [s (simple-set [:foo])]
37+
(identical? s (conj s :foo))))
38+
3139
(comment
3240

3341
(require '[cljs.lite-collections-test] :reload)

0 commit comments

Comments
 (0)