Fork me on GitHub
#clojure-spec
<
2017-07-14
>
bfabry01:07:27

ya looks really nice @bbrinck

bbrinck03:07:35

Thanks! Let me know if you run into any problems.

adamfrey18:07:37

is there a way to generate an args seq from an fdef with an :args spec?

bbrinck18:07:28

@adamfrey would this work?

(s/fdef ::foo :args (s/cat :i int? :s string?))
(s/exercise (:args (s/spec ::foo)))

bbrinck18:07:15

or

(require '[clojure.test.check.generators :as gen])
(gen/sample (s/gen (:args (s/spec ::foo))))

adamfrey18:07:32

that does work, thanks