Skip to content

Commit 838046a

Browse files
committed
- add working test
- add failing case in the comments
1 parent ba118da commit 838046a

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
@@ -24,9 +24,17 @@
2424
(is (== (hash (simple-map-entry 1 2))
2525
(hash (MapEntry. 1 2 nil)))))
2626

27+
(deftest test-simple-set-with-set
28+
(is (= (simple-set []) (set [])))
29+
(is (= (set []) (simple-set []))))
30+
2731
(comment
2832

2933
(require '[cljs.lite-collections-test] :reload)
3034
(cljs.test/run-tests)
3135

36+
;; failing
37+
(= (simple-set [(simple-map-entry 1 2)])
38+
(set [(MapEntry. 1 2 nil)]))
39+
3240
)

0 commit comments

Comments
 (0)