Skip to content

Better error message when a generator can't satisfy a spec #3

@benrady

Description

@benrady

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions