Skip to content

Commit 3b98a00

Browse files
slipsetstuarthalloway
authored andcommitted
CLJ-1761: added tests
Signed-off-by: Stuart Halloway <stu@cognitect.com>
1 parent 041e410 commit 3b98a00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/clojure/test_clojure/transducers.clj

+5-1
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@
368368
(is (= 1 @counter))
369369
(is (= ["1" "2" "3" "4" "5"] res)))))
370370

371+
(deftest test-run!
372+
(is (nil? (run! identity [1])))
373+
(is (nil? (run! reduced (range)))))
374+
371375
(deftest test-distinct
372376
(are [out in] (= out (sequence (distinct in)) (sequence (distinct) in))
373377
[] []
@@ -393,4 +397,4 @@
393397
(is (= []
394398
(sequence (map-indexed vector) [])))
395399
(is (= [[0 1] [1 2] [2 3] [3 4]]
396-
(sequence (map-indexed vector) (range 1 5)))))
400+
(sequence (map-indexed vector) (range 1 5)))))

0 commit comments

Comments
 (0)