| << assert | Assertion functions | assert_isapprox >> |
| assert_checkerror(command, expected_error_message) |
| r = assert_checkerror(command, expected_error_message) |
| [r, msg] = assert_checkerror(command, expected_error_message) |
| assert_checkerror(command, expected_error_message, expected_error_identifier) |
| r = assert_checkerror(command, expected_error_message, expected_error_identifier) |
| [r, msg] = assert_checkerror(command, expected_error_message, expected_error_identifier) |
a string value
a string, the expected error message.
a string, the expected error identifier.
a logical value
a string value, the error message. If res == true, then errormsg == ''. If res == false, then msg contains the error message.
assert_checkerror('cos', _('Wrong number of input arguments.'));
assert_checkerror('cos', _('Wrong error message.'));
assert_checkerror('mustBeFinite(NaN)', _('Value must be finite.'), 'Nelson:validators:mustBeFinite')
assert_istrue, assert_isfalse.
| Version | Description |
|---|---|
| 1.0.0 | initial version |
Allan CORNET