test-check 2019-08-21

@gfredericks any idea why gen'/string-from-regex would be undefined when i have added test.chuck as a dep and required the chuck.generators namespace as gen' ?

tried both 0.2.8 (which used to work for me) and 0.2.10

and this is with org.clojure/test.check v0.10.0

[using deps.edn]

It's a regular ole function

hmm 🙂

wow, must have been some weird fluke. restarting figwheel a few times resolved it

Is that what you're using?

oh, yea this is cljs

Well now I don't know why it works 😂

haha, yea same here

There's s longstanding PR for porting it, but I don't think it's complete

It's very nontrivial, because different regex engines

hmm ok. right

btw, should everything in clojure.test.check be in the clojure.spec.alpha namespace now?

or should we continue using the former until v2 comes out?

asking because gen/let doesn't appear to be there

@johanatan Several functions in test.check gen ns are not in the clojure.spec gen ns.

Alex Miller (Clojure team) 2019-08-21T20:09:04.019100Z

gen/let is a macro and only the primary functions are being dynaloaded

Alex Miller (Clojure team) 2019-08-21T20:09:42.019700Z

it's not impossible to do so but not high on our list of things to do, so you should just continue using the one from test.check if you need it