Thanks!
It all works. Now I'm killing myself trying to figure out what the heck I
was doing wrong.
Ryan
On Tuesday, October 9, 2012 7:44:06 PM UTC-5, Stuart Sierra wrote:
>
> clojure.test is weird (my fault) but I don't think it's that weird.
>
> Your 'defmethod' is correct, but it shouldn't ne
clojure.test is weird (my fault) but I don't think it's that weird.
Your 'defmethod' is correct, but it shouldn't need the 'binding' around it.
This works for me:
user=> (require '[clojure.test :as t])
user=> (defmethod t/assert-expr 'fail [msg form]
`(t/do-report {:type :fail :expected
nd to 'clojure.test.
The following code appears to work (although the actual method is useless.)
Is this the proper way to go about adding clojure.test/assert-expr methods?
(ns blammo.core-test
(:use clojure.test
blammo.core))
(binding [*ns* 'clojure.test]
(defmethod cloju