ClojureDocs

导航

命名空间

断言谓词

clojure.test

从 1.1 版本起可用
  • (assert-predicate 消息形式)
Returns generic assertion code for any functional predicate.  The
'expected' argument to 'report' will contains the original form, the
'actual' argument will contain the form with all its sub-forms
evaluated.  If the predicate returns false, the 'actual' form will
be wrapped in (not...).