adding clojure.test/assert-expr methods

2012-10-09 Thread Ryan Fowler
. 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 clojure.test/assert-expr 'fail [msg form

Re: adding clojure.test/assert-expr methods

2012-10-09 Thread Stuart Sierra
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

Re: adding clojure.test/assert-expr methods

2012-10-09 Thread Ryan Fowler
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 need