asserts.warningFree(command)
[res, msg] = asserts.warningFree(command)
| Parameter | Description |
|---|---|
| command | Command string evaluated in the current context. |
| Parameter | Description |
|---|---|
| res | true if the assertion passes, false otherwise. |
| msg | assertion failure message, empty on success. |
The assertion passes when the command emits no warning and raises no error.
Unexpected warnings are returned in msg when outputs are requested.
asserts.warningFree('1 + 1');
[res, msg] = asserts.warningFree('warning(''Nelson:asserts:example'', ''expected warning'');');
| Version | Description |
|---|---|
| 2.0.0 | initial version |