We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 428618b commit bf2c2feCopy full SHA for bf2c2fe
src/test/cljs/cljs/collections_test.cljs
@@ -1178,7 +1178,7 @@
1178
(is (= (transient (obj-map :a 1 :b 2))
1179
(obj-map :a 1 :b 2))))
1180
1181
-(deftest test-hash-map
+(deftest test-simple-hash-map
1182
(let [a (simple-hash-map)]
1183
(is (empty? a))
1184
(is (zero? (count a))))
@@ -1202,6 +1202,12 @@
1202
(is (= (transient (simple-hash-map :a 1 :b 2))
1203
(simple-hash-map :a 1 :b 2))))
1204
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
+
1211
(comment
1212
1213
(run-tests)
0 commit comments