Hello, I'm generating deftest's using a helper macro that takes a variety of test parameters and though the tests function correctly, the output of a failed test is not exactly right. The expect value is shown as the un-evaluated test form, and the actual value is shown as the result of evaluating the test form. I realize 'is' is a macro itself, but I'm not quite sure how to expand or escape the guts of my macro to make the output match that of a normal test.
Whereas a normal test failure looks like this (some output elided): user=> (deftest normal-test #_=> (is (= [0 1 5] (range 3)))) #'user/normal-test user=> (run-tests) FAIL in (normal-test) expected: [0 1 5] actual: ((0 1 2)) A failure for a deftest defined within a macro comes out like this: user=> (defmacro defnesttest [v] #_=> `(deftest nested-test #_=> (is (= [0 1 5] ~v)))) #'user/defnesttest user=> (defnesttest (range 3)) #'user/nested-test user=> (run-tests) FAIL in (nested-test) expected: (clojure.core/= [0 1 5] (range 3)) actual: false Thanks for any insight, m. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.