For spec'd functions, you may check them automatically with
clojure.test.check.alpha/check. Is there something similar for spec'd
macros? I can always use test.check to generate unit testing parameters
for macros, but is there a way to get that for free with Clojure spec?
Regards,
Dylon
--
By clojure.test.check.alpha, I meant clojure.spec.test.alpha. If there's
not a way to check macros now, is the feature planned?
On Monday, January 15, 2018 at 12:44:01 AM UTC-8, Dylon Edwards wrote:
>
> For spec'd functions, you may check them automatically with
> cloju
rth to write :ret or :fn specs for
> macros, so in practice I have not found this to be needed.
>
> stest/instrument also doesn't work with macros, although this is somewhat
> replaced by always checking the args on macros during macroexpansion.
>
>
> On Monday, January