ClojureDocs

导航

命名空间

with-test

clojure.test

自 1.1 版后提供
  • (with-test 定义 & 正文)
Takes any definition form (that returns a Var) as the first argument.
Remaining body goes in the :test metadata function for that Var.
 When *load-tests* is false, only evaluates the definition, ignoring
the tests.