asserts.noError(command)
[res, msg] = asserts.noError(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 evaluating command does not raise an error.
With outputs, unexpected errors are returned as assertion failures instead of being raised directly.
asserts.noError('1 + 1');
[res, msg] = asserts.noError('cos');
| Version | Description |
|---|---|
| 2.0.0 | initial version |