deftest defines a named Clojure test and makes it available to clojure.test execution. It generates a function in the current namespace, whose test-var metadata supports direct execution. section 22.9
Define and run a test
(deftest sqrt-test (is (= 2 (sqrt 4)) "Expecting 2")) (test-var #'sqrt-test) The assertion reports a failure when the computed result differs from 2.
