| Assertion functions | assert_checkerror >> |
| assert(x) |
| r = assert(x) |
| [r, msg] = assert(x) |
| assert(x, err_msg) |
| r = assert(x, err_msg) |
| [r, msg] = assert(x, err_msg) |
a logical value
a string, the error message to be printed in case of failure (optional).
a logical value
a string value, the error message. If x == true, then msg == ''. If x == false, then msg contains the error message.
assert(4 == 3, _('error for comparaison.'))
assert_istrue, assert_isfalse.
| Version | Description |
|---|---|
| 1.0.0 | initial version |
Allan CORNET