Re: test-is: generating and processing testing data

2009-01-29 Thread Frantisek Sodomka
Patch for testing sequences attached! ;-) Frantisek --~--~-~--~~~---~--~~ 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

Re: test-is: generating and processing testing data

2009-01-29 Thread Frantisek Sodomka
Thank you for explanation. I will use "is" for tests with messages. Otherwise, I am quite happy with "are" macro. It really helps with not repeating myself. I created 3 new issues and added 2 patches: http://code.google.com/p/clojure-contrib/issues/list Issue for sequences is to inform that I am

Re: test-is: generating and processing testing data

2009-01-28 Thread Stuart Sierra
Hi Frantisek, I think I understand what you're looking for here, but I don't see how to make it work. If "are" could be applied to a generated list, then it would have to evaluate its arguments, which is a pretty fishy thing for a macro to do. (But possible -- check out clojure.contrib.apply- mac

Re: test-is: generating and processing testing data

2009-01-28 Thread Frantisek Sodomka
Oops, error. Sequence passed to 'are' cannot be evaluated => use quoted list '( or quoted vector '[ ... (are (= _1 _2) '(3 (+ 1 2) 0 (+ -1 1))) Hm... Since 'are' is basically creating bunch of 'is' tests, I wonder how to also add a description message for each test. Thinking along the lin