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 lines:

(are (= _1 _2)
  '(3 (+ 1 2) "should be 3"
    0 (+ -1 1) "-x + x = 0"))

(are (is (= _1 _2) _3)
  '(3 (+ 1 2) "should be 3"
    0 (+ -1 1) "-x + x = 0"))

(do-parse (is (= _1 _2) _3)
  '(3 (+ 1 2) "should be 3"
    0 (+ -1 1) "-x + x = 0"))

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 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