Fork me on GitHub
#test-check
<
2019-08-21
>
johanatan19:08:07

@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' ?

johanatan19:08:28

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

johanatan19:08:36

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

johanatan19:08:44

[using deps.edn]

gfredericks19:08:55

It's a regular ole function

johanatan19:08:56

hmm 🙂

johanatan19:08:57

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

gfredericks19:08:10

It's not in cljs

gfredericks19:08:17

Is that what you're using?

johanatan19:08:23

oh, yea this is cljs

gfredericks19:08:40

Well now I don't know why it works 😂

johanatan19:08:46

haha, yea same here

gfredericks19:08:16

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

gfredericks19:08:30

It's very nontrivial, because different regex engines

johanatan19:08:35

hmm ok. right

johanatan19:08:32

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

johanatan19:08:43

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

johanatan19:08:09

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

kenny20:08:41

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

Alex Miller (Clojure team)20:08:04

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

Alex Miller (Clojure team)20:08:42

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