Hi everyone. I'm still pretty new to spec, and can't figure out what's wrong with this simple spec with a generator fn:
(s/def :offset-date-time
(s/with-gen (partial instance? OffsetDateTime)
#(OffsetDateTime/now)))
(s/gen :offset-date-time)
fails with
Execution error (AssertionError) at clojure.test.check.generators/such-that (generators.cljc:346).
Assert failed: Second arg to such-that must be a generator
(generator? gen)
Any ideas?That's not a generator
Generators are special objects from spec's generators namespace
Ah!
Thanks, @gfredericks