Tests: Difference between revisions

→‎Expected Failures and Known Bugs: Rm very dubious. It doesn't do that for any of my builds.
(→‎Expected Failures and Known Bugs: Rm very dubious. It doesn't do that for any of my builds.)
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 273: Line 273:
</syntaxhighlight>
</syntaxhighlight>


A {{codeline|%!test}} block with a <em><Message></em> that is an integer preceded by an asterisk (*) is interpreted as a bug report id number where the bug has been fixed.  Octave's build process automatically checks the status of bug reports and adds the "*" in all source files that contain tests tagged with bug numbers. Such blocks failing on later tests are flagged as regressions:  
A {{codeline|%!test}} block with a <em><Message></em> that is an integer preceded by an asterisk (*) is interpreted as a bug report id number where the bug has been fixed. Such blocks failing on later tests are flagged as regressions:  
<syntaxhighlight lang="Octave">
<syntaxhighlight lang="Octave">
%!test <*12345> assert (1+1, 3)
%!test <*12345> assert (1+1, 3)
183

edits