are

added
1.1

ns
clojure.test

type
macro

(are argv expr & args)

Checks multiple assertions with a template expression.
See clojure.template/do-template for an explanation of
templates.

Example: (are [x y] (= x y)  
2 (+ 1 1)
4 (* 2 2))
Expands to: 
(do (is (= 2 (+ 1 1)))
(is (= 4 (* 2 2))))

Note: This breaks some reporting features, such as line numbers.

                ;; An alternate to the example in the documentation is 

user=> (are [result arg-map] (= result (+ (:x arg-map) (:y arg-map)))
             5      {:x 2 :y 3},
             10     {:x 6 :y 4})