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 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 nil :actual nil :message 
> ~msg}))
> #<MultiFn clojure.lang.MultiFn@418bdc7a>
>
> user=> (t/deftest a-test (t/is (fail) "Failure"))
> #'user/a-test
>
> user=> (a-test)
>
> FAIL in (a-test) (NO_SOURCE_FILE:1)
> Failure
> expected: nil
>   actual: nil
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to