On Mar 17, 6:06 pm, Sean <francoisdev...@gmail.com> wrote:
>    I'm writing a macro library for myself, and I'm thinking about
> publishing it.  Before I do so, I'd like to write & run some unit
> tests for it.  I was hoping the crowd could chime in on how they test
> macros.  Any links & examples would be great.  Thanks!

Hi Sean,

You can generally test a macro like any other function -- call it,
then check that the result is what you want.  The exact form a macro
expands to is usually an implementation detail, not a behavior.

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to