Skip to content

Commit b8bd567

Browse files
puredangerstuarthalloway
authored andcommitted
CLJ-1684 - fix bad transducer eduction generative test
Signed-off-by: Stuart Halloway <[email protected]>
1 parent 69afe91 commit b8bd567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/clojure/test_clojure/transducers.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
gen-distinct gen-dedupe gen-interpose]))
7474

7575
(def gen-actions
76-
(gen/vector gen-action))
76+
(gen/vector gen-action 1 5))
7777

7878
(def gen-coll
7979
(gen/vector gen/int))
@@ -96,7 +96,7 @@
9696

9797
(defn apply-as-xf-eduction
9898
[coll actions]
99-
(apply eduction (into actions [coll])))
99+
(into [] (eduction (apply comp (map :xf actions)) coll)))
100100

101101
(defn apply-as-xf-transduce
102102
[coll actions]
@@ -137,7 +137,7 @@
137137

138138
(deftest seq-and-transducer
139139
(let [res (chk/quick-check
140-
100000
140+
200000
141141
(prop/for-all* [result-gen] result-good?))]
142142
(when-not (:result res)
143143
(is

0 commit comments

Comments
 (0)