Did you know ... | Search Documentation: |
Predicate assertion/1 |
assert()
macro. It has no effect if Goal
succeeds. If Goal fails or throws an exception, the following
steps are taken:
error(assertion_error(Reason, G),_)
where Reason is one of fail
or the exception raised.