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 69afe91 commit b8bd567Copy full SHA for b8bd567
test/clojure/test_clojure/transducers.clj
@@ -73,7 +73,7 @@
73
gen-distinct gen-dedupe gen-interpose]))
74
75
(def gen-actions
76
- (gen/vector gen-action))
+ (gen/vector gen-action 1 5))
77
78
(def gen-coll
79
(gen/vector gen/int))
@@ -96,7 +96,7 @@
96
97
(defn apply-as-xf-eduction
98
[coll actions]
99
- (apply eduction (into actions [coll])))
+ (into [] (eduction (apply comp (map :xf actions)) coll)))
100
101
(defn apply-as-xf-transduce
102
@@ -137,7 +137,7 @@
137
138
(deftest seq-and-transducer
139
(let [res (chk/quick-check
140
- 100000
+ 200000
141
(prop/for-all* [result-gen] result-good?))]
142
(when-not (:result res)
143
(is
0 commit comments