BIST for m-files: Difference between revisions

101 bytes added ,  4 December 2020
m
added documentation links, fixed outdated appendix style tips mention
m (added documentation links, fixed outdated appendix style tips mention)
 
Line 18: Line 18:
For the remainder, it's because no one has taken the time to write a test for them.
For the remainder, it's because no one has taken the time to write a test for them.


Before starting, take a look at Appendix B Test and Demo Functions and Appendix C Tips and Standards for what functions are available for testing and how to write code that conforms to Octave's coding guidelines.  Another good strategy is to look for %!test, %!testif, %!xtest blocks in existing m-files and see how they were coded.
Before starting, take a look at [https://octave.org/doc/latest/Test-and-Demo-Functions.html#Test-and-Demo-Functions Appendix B Test and Demo Functions] and the [[Octave_style_guide|Octave Style Guide]] for what functions are available for testing and how to write code that conforms to Octave's coding guidelines.  Another good strategy is to look for %!test, %!testif, %!xtest blocks in existing m-files and see how they were coded.


== Functions lacking tests (as of December 15, 2015) ==
== Functions lacking tests (as of December 15, 2015) ==
155

edits