Welcome! Please see the About page for a little more info on how this works.

0 votes
in test.check by

In particular the output of {{(generate (recursive-gen vector nat) 1000)}} is rather less varied than I would hope.

7 Answers

0 votes
by

Comment made by: floybix

Yes, recursive-gen seems not to generate scalars, which means any-printable doesn't generate scalars.

(require '[clojure.test.check.generators :as g]) (->> (g/sample g/any-printable 1000) (remove coll?)) ;; ()

0 votes
by

Comment made by: gfredericks

recursive-gen should generate scalars on master

0 votes
by

Comment made by: floybix

D'oh, sorry for the noise.

0 votes
by

Comment made by: seancorfield

Does this also cause http://dev.clojure.org/jira/browse/CLJ-2036 ?

0 votes
by

Comment made by: gfredericks

I think the "doesn't return scalars" problem is fixed on master; this is a subtler problem.

0 votes
by

Comment made by: gfredericks

TCHECK-83 in particular, is done.

0 votes
by
Reference: https://clojure.atlassian.net/browse/TCHECK-111 (reported by gfredericks)
...