clojure-spec

liebs 2023-01-10T15:45:01.395019Z

In the (presumably unlikely) case where test/check does not find any failures in a function I've spec'ed, what is the expected output? e.g., I have a function foo and I check it like so

(->> (test/check 'foo) test/summarize-results)
In my case I'm just getting back a map of {:total 0} which seems suspect to me given the docs for these functions.

Alex Miller (Clojure team) 2023-01-10T15:48:54.615889Z

maybe `foo instead of 'foo ?

Alex Miller (Clojure team) 2023-01-10T15:49:18.305799Z

(that is, a resolved symbol name)

Alex Miller (Clojure team) 2023-01-10T15:50:40.800039Z

I suspect it's not finding foo and thus not testing anything, see the guide too https://clojure.org/guides/spec#_testing

liebs 2023-01-10T15:50:55.420229Z

oh, right. I forgot about that syntax and thought the ` was just an italicized '

liebs 2023-01-10T15:51:01.229849Z

Thanks!