On Mon, Jan 19, 2009 at 1:44 PM, Stuart Sierra
<[email protected]> wrote:
> I've attempted to allow for this with the "are" macro, which takes a
> template expression and applies it to a collection of values. The
> interface is a little tricky though, so I'm not sure if I should keep
> it or not:
Stuart,
For what it's worth, I'm a fan of the (are ...) macro. The examples
always seem to show something like
(are (= _1 _2)
"a" (myfunc :a)
"b" (myfunc :b))
but I generally do something more like
(are (= _1 (myfunc _2))
"a" :a
"b" :b)
which gives you a nicely DRY yet readable presentation of expected
results and their respective inputs.
Thanks.
-hume.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---