Top Level Namespace
Defined in:
Macro Summary
-
assert(cond, exc = nil)
If
cond
isfalse
, raiseexc
. -
debug_assert(cond, exc = nil)
Assert only in debug mode
Macro Detail
macro assert(cond, exc = nil)
#
If cond
is false
, raise exc
.
If exc
is not provided, AssertionFailed
will be raised instead with information about the faulty expression.
If the expression is a comparison, the result of each side of the comparison will also be shown.