Statement macro
Signals an error if the expression passed to it evaluates to false.
assert expression format-string [format-arg]* => false
assert expression => false
#f.
common-extensions
common-extensions
Signals an error if expression evaluates to #f.
An assertion or "assert" is a simple tool for testing that conditions hold in program code.
The format-string is a format string as defined on page 112 of the DRM. If format-string is supplied, the error is formatted accordingly, along with any instances of format-arg.
If expression is not #f, assert does not evaluate format-string or any instances of format-arg.