This function is designed to be used in a binding macro to override
the report-problem function in clojure.contrib.mock. Instead of printing
the error to the console, the error is logged via clojure.test.
(defn report-problem
"This function is designed to be used in a binding macro to override
the report-problem function in clojure.contrib.mock. Instead of printing
the error to the console, the error is logged via clojure.test."
{:dynamic true}
[fn-name expected actual msg]
(fail {:message (str msg " Function name: " fn-name),
:expected expected,
:actual actual}))
Comments top
No comments for report-problem. Log in to add a comment.