Skip to main content

assert-predicate

functionv1.1

clojure.test/assert-predicate

Available in:BBCLJCLJS
(assert-predicate [msg form])
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...).

No examples yet. Be the first to add one!