Fork me on GitHub
#kaocha
<
2019-08-14
>
vikeri11:08:23

Yeah, I’m using expound:

(defn spec-test
  "Takes a spec and a function call and returns a test"
  [spec f]
  (let [valid? (s/valid? spec f)]
    (is valid?
        (expound/expound-str spec f))))

avi17:08:25

Nice, I use expound in my project in almost the same way sheepy

bbrinck12:08:12

@vikeri if you have ‘fdef’ specs, you can also use ‘check’ + expound https://github.com/bhb/expound/blob/master/README.md#printing-results-for-check