Skip to content

Commit be48b18

Browse files
committed
- add simple-map-entry tests
1 parent 265474b commit be48b18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/cljs/cljs/collections_test.cljs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,12 @@
12081208
(let [x #{1 2 3}]
12091209
(is (every? #(contains? x %) [1 2 3]))))
12101210

1211+
(deftest test-simple-map-entry
1212+
(is (= (simple-map-entry :foo 1)
1213+
(MapEntry. :foo 1 nil)))
1214+
(is (= (hash (simple-map-entry :foo 1))
1215+
(hash (MapEntry. :foo 1 nil)))))
1216+
12111217
(comment
12121218

12131219
(run-tests)

0 commit comments

Comments
 (0)