I am trying to define a helper function that wraps clojure.test/deftest . Here is my general idea:
(defn test-wrapper [name & body] (deftest (symbol (clojure.string/replace name #"\W" "-")) body)))
However, since the first deftest argument deftest not evaluated, it throws an exception because it is a form, not a symbol. Is there a way to get the form to evaluate first?
source share