assert_isfalse(condition)
assert_isfalse(condition, message)
[res, msg] = assert_isfalse(condition)
[res, msg] = assert_isfalse(condition, message)
| Parameter | Description |
|---|---|
| condition | Logical scalar or array to test. Every entry must be false. |
| message | Optional custom failure message. |
| Parameter | Description |
|---|---|
| res | true if the assertion passes, false otherwise. |
| msg | Assertion failure message, empty on success. |
assert_isfalse is kept for compatibility.
For complete documentation, use asserts.isfalse.
assert_isfalse(3 == 4);
asserts.isfalse(false);
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 2.0.0 | documented as historical name for asserts.isfalse |