Tests: Difference between revisions

Jump to navigation Jump to search
Update "Test and Demo Functions" link to use latest manual instead of v6.4.0 specifically
(→‎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
(Update "Test and Demo Functions" link to use latest manual instead of v6.4.0 specifically)
 
Line 35: Line 35:
== Writing tests ==
== Writing tests ==


(Please see the latest version of the [https://octave.org/doc/latest/index.html Octave manual] for complete documentation on [https://octave.org/doc/v6.4.0/Test-and-Demo-Functions.html Test and Demo Functions].)
(Please see the latest version of the [https://octave.org/doc/latest/index.html Octave manual] for complete documentation on [https://octave.org/doc/latest/Test-and-Demo-Functions.html Test and Demo Functions].)


Tests appear as <code>%!</code> blocks at the bottom of the source file, together with <code>%!demo</code> blocks.  A typical m function file, will have the following structure:
Tests appear as <code>%!</code> blocks at the bottom of the source file, together with <code>%!demo</code> blocks.  A typical m function file, will have the following structure:
22

edits

Navigation menu