deftest-

clojure.test

  • (deftest- name & body)
Like deftest but creates a private var.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:615 top

(defmacro deftest-
  "Like deftest but creates a private var."
  {:added "1.1"}
  [name & body]
  (when *load-tests*
    `(def ~(vary-meta name assoc :test `(fn [] ~@body) :private true)
          (fn [] (test-var (var ~name))))))
Vars in clojure.test/deftest-:
Used in 0 other vars

Comments top

No comments for deftest-. Log in to add a comment.