Re: clojure.spec - seeking a working example of stest/instrument with the :replace option

2016-11-08 Thread Joseph Wayne Norton
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

clojure.spec - seeking a working example of stest/instrument with the :replace option

2016-11-07 Thread Joseph Wayne Norton
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

Q: Any plans to make the default value of :gen-max a dynamic var?

2016-07-11 Thread Joseph Wayne Norton
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.

clojure.spec(1.9.0-alpha6): Is this the expected return value from (s/gen (s/alt ...)) ?

2016-06-14 Thread Joseph Wayne Norton
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

Q: Is there a reason why some clojure.test.check generators are excluded from clojure.spec.gen lazy primitives?

2016-06-04 Thread Joseph Wayne Norton
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 --