Fork me on GitHub
#clojure-spec
<
2023-07-04
>
Joerg Schmuecker01:07:26

Is it possible that spec and test.check do have some incompatibilities? I am getting cannot cast Generator to fn exceptions when using specs in the tests.

hiredman01:07:17

Spec generators are test.check generators wrapped in a 0 art function

Joerg Schmuecker08:07:22

So how do I use a spec generator in test.check? Unwrap them or use the “surface” provided by “spec.alpha”.

Joerg Schmuecker08:07:08

More importantly, how would i find out about htat? Without having to bother a human.