asserts.noError
Check that a command completes without error.
📝Syntax
asserts.noError(command)
[res, msg] = asserts.noError(command)
📥Input Arguments
Parameter Description
command Command string evaluated in the current context.
📤Output Arguments
Parameter Description
res true if the assertion passes, false otherwise.
msg assertion failure message, empty on success.
📄Description

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.

💡Examples
Command without error
asserts.noError('1 + 1');
Capture an unexpected error
[res, msg] = asserts.noError('cos');
🔗See Also
asserts.throwsasserts.checkerror
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub