Permalink
Browse files

Minor refactoring: use int-rose-tree in choose

Signed-off-by: Reid Draper <reiddraper@gmail.com>
  • Loading branch information...
nberger authored and reiddraper committed Dec 1, 2014
1 parent 3bef29f commit ff5809c14ff1d333f8a0c3066e05c1a8e7dd6b47
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/clojure/clojure/test/check/generators.clj
@@ -194,7 +194,7 @@
(let [value (rand-range rnd lower upper)]
(rose/filter
#(and (>= % lower) (<= % upper))
[value (core/map int-rose-tree (shrink-int value))])))))
(int-rose-tree value))))))
(defn one-of
"Create a generator that randomly chooses a value from the list of

0 comments on commit ff5809c

Please sign in to comment.