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 8250322 commit f582358Copy full SHA for f582358
test/clojure/core_test/seq.cljc
@@ -27,4 +27,8 @@
27
(is (= input-map (into {} (seq input-map))))))
28
(testing "nonseqables"
29
(is (thrown? IllegalArgumentException (seq 1)))
30
- (is (thrown? IllegalArgumentException (seq (fn []))))))
+ (is (thrown? IllegalArgumentException (seq (fn [])))))
31
+ (testing "infinite sequences are produced by seq"
32
+ (let [infinite-seq (seq (range))]
33
+ (is (seq? infinite-seq))
34
+ (is (= (range 10000) (take 10000 infinite-seq))))))
0 commit comments