specific
specific copied to clipboard
Better error message when a generator can't satisfy a spec
It would be nice to show the spec and the generator. Right now, you get this:
ERROR in (cik-lookup) (core.clj:4617) Uncaught exception, not in assertion. expected: nil actual: clojure.lang.ExceptionInfo: Couldn't satisfy such-that predicate after 100 tries. at clojure.core$ex_info.invokeStatic (core.clj:4617) clojure.core$ex_info.invoke (core.clj:4617) clojure.test.check.generators$such_that_helper.invokeStatic (generators.cljc:320)