Hi, is there a shorter version for something like: (assert (s/valid? ::my-spec x) (s/explain ::my-spec x)) , so if assert 'fails' print message of the explain for this?
(assert (s/valid? ::my-spec x) (s/explain ::my-spec x))
There is s/assert https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html#clojure.spec.alpha/assert
s/assert
thanks