156
edits
(slight rearrangement to incorporate the "%!test fail" syntax for including errors and warnings in test blocks.) |
m (→Test for failure: typo) |
||
Line 144: | Line 144: | ||
==== Test for failure ==== | ==== Test for failure ==== | ||
If a warning or error message cannot be tested with one of the single-line tests mentioned above, the {{codeline|fail}} function can be used within a test block verify expected error and warning functionality such as: | If a warning or error message cannot be tested with one of the single-line tests mentioned above, the {{codeline|fail}} function can be used within a test block to verify expected error and warning functionality such as: | ||
<syntaxhighlight lang="Octave"> | <syntaxhighlight lang="Octave"> |
edits