• (try-expr msg form)
Used by the 'is' macro to catch unexpected exceptions.
You don't call this.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:517 top

(defmacro try-expr
  "Used by the 'is' macro to catch unexpected exceptions.
  You don't call this."
  {:added "1.1"}
  [msg form]
  `(try ~(assert-expr msg form)
        (catch Throwable t#
          (do-report {:type :error, :message ~msg,
                      :expected '~form, :actual t#}))))
Vars in clojure.contrib.test-is/try-expr: defmacro apply concat hash-map list seq
Used in 0 other vars

Comments top

No comments for try-expr. Log in to add a comment.