(assert-impl x test form message edf)
Evaluates x
and test
, catches exception and throws an exception if test
does not evaluate to logical true or other exceptions were thrown. Evaluated
x
is available in implementing macros as symbol 'x
, which is ::no-value
when evaluation failed. Returns true
when assertion passed.
Evaluates `x` and `test`, catches exception and throws an exception if `test` does not evaluate to logical true or other exceptions were thrown. Evaluated `x` is available in implementing macros as symbol `'x`, which is `::no-value` when evaluation failed. Returns `true` when assertion passed.
(asserting-value? x)
True if x is asserting value.
True if x is asserting value.
(ex-data-fn id value)
Returns ex-data function by id
and asserting value.
Returns ex-data function by `id` and asserting value.
(exception form message edf throwable)
Returns assertion exception with message:
{message} - Assert failed: {form}
and ex-data from (edf throwable)
.
Arguments message
, edf
and throwable
can be nil
.
Returns assertion exception with message: `{message} - Assert failed: {form}` and ex-data from `(edf throwable)`. Arguments `message`, `edf` and `throwable` can be `nil`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close