stest/check does not work with spec'ed macros. In general, most macros emit 
code (in the form of data) and in my experience it's usually either not 
possible or more effort than it's worth 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 15, 2018 at 2:44:01 AM UTC-6, Dylon Edwards wrote:
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to