d-rand {:replace {`ranged-rand ranged-const}})
>
>
>
> On Monday, November 7, 2016 at 10:07:39 PM UTC-6, Joseph Wayne Norton wrote:
> Hello.
>
> I tried to construct a small example to understand and to illustrate how
> stest/instrument with the :replace option works.
&g
Hello.
I tried to construct a small example to understand and to illustrate how
stest/instrument with the :replace option works.
My attempt to construct a small working example was to expand on the
ranged-rand example in the clojure.spec Guide.
I created another function called ranged-const th
Taken from the spec documentation:
And additional args that control gen
> :gen-max - the maximum coll size to generate (default 20)
Q: Any plans to make the default value of :gen-max a dynamic var?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
Is this the expected return value?
=> (gen/sample (s/gen (s/alt :s string? :b boolean?)))
> ([""] [true] [""] ["v6n"] [true] ["q7p7"] ["310"] [true] ["FSmdw"]
> ["809Gvz5"])
I am not expecting a vector to wrap each of the sample return values.
Best regards,
Joe N.
--
You received this messa
Is there a reason why some clojure.test.check generators are excluded from
clojure.spec.gen lazy primitives?
https://github.com/clojure/clojure/blob/1f25347a7b219488d5d9f8d17b04f2cc7828b30e/src/clj/clojure/spec/gen.clj#L114
The nat generator as one example is missing.
Best regards,
Joe N
--