test-check

johanatan 2019-08-21T19:37:07.011600Z

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

johanatan 2019-08-21T19:37:28.012Z

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

johanatan 2019-08-21T19:37:36.012300Z

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

johanatan 2019-08-21T19:37:44.012700Z

[using deps.edn]

2019-08-21T19:37:48.012900Z

Not at all

2019-08-21T19:37:55.013200Z

It's a regular ole function

johanatan 2019-08-21T19:37:56.013300Z

hmm 🙂

johanatan 2019-08-21T19:38:57.013700Z

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

2019-08-21T19:38:59.013900Z

Wait

2019-08-21T19:39:10.014300Z

It's not in cljs

2019-08-21T19:39:17.014600Z

Is that what you're using?

johanatan 2019-08-21T19:39:23.015Z

oh, yea this is cljs

2019-08-21T19:39:40.015400Z

Well now I don't know why it works 😂

johanatan 2019-08-21T19:39:46.015600Z

haha, yea same here

2019-08-21T19:40:16.016400Z

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

2019-08-21T19:40:30.016900Z

It's very nontrivial, because different regex engines

johanatan 2019-08-21T19:40:35.017100Z

hmm ok. right

johanatan 2019-08-21T19:58:32.017600Z

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

johanatan 2019-08-21T19:58:43.017900Z

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

johanatan 2019-08-21T19:59:09.018200Z

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

kenny 2019-08-21T20:07:41.018700Z

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

alexmiller 2019-08-21T20:09:04.019100Z

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

alexmiller 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

johanatan 2019-08-21T20:37:11.019900Z

ok, thx