Skip to content

Commit bf2c2fe

Browse files
committed
- add simple set test
1 parent 428618b commit bf2c2fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/cljs/cljs/collections_test.cljs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@
11781178
(is (= (transient (obj-map :a 1 :b 2))
11791179
(obj-map :a 1 :b 2))))
11801180

1181-
(deftest test-hash-map
1181+
(deftest test-simple-hash-map
11821182
(let [a (simple-hash-map)]
11831183
(is (empty? a))
11841184
(is (zero? (count a))))
@@ -1202,6 +1202,12 @@
12021202
(is (= (transient (simple-hash-map :a 1 :b 2))
12031203
(simple-hash-map :a 1 :b 2))))
12041204

1205+
(deftest test-simple-set
1206+
(is (= #{1 2 3} #{1 2 3}))
1207+
(is (= 3 (count #{1 2 3})))
1208+
(let [x #{1 2 3}]
1209+
(is (every? #(contains? x %) [1 2 3]))))
1210+
12051211
(comment
12061212

12071213
(run-tests)

0 commit comments

Comments
 (0)