Add BIST tests for octave functions written in C++: Difference between revisions

Jump to navigation Jump to search
m
Formatting changes
(Create page)
 
m (Formatting changes)
Line 6: Line 6:


# Basic functionality
# Basic functionality
* Does it work for all different combinations of number of inputs and number of outputs
#* Does it work for all different combinations of number of inputs and number of outputs
* Does it work for all expected input classes (matrices, strings, logicals, cell arrays, structs?)
#* Does it work for all expected input classes (matrices, strings, logicals, cell arrays, structs?)
# Corner Case functionality
# Corner Case functionality
* Does it work for corner cases (empty matrices, Inf or NaN, etc.)
#* Does it work for corner cases (empty matrices, Inf or NaN, etc.)
* Tests for specific bugs that have been reported on the bug tracker
#* Tests for specific bugs that have been reported on the bug tracker
# Input validation
# Input validation
* Does it correctly generate errors or warnings for bad inputs
#* Does it correctly generate errors or warnings for bad inputs


==== Example 1 : Simple Function (rows() from data.cc) ====
==== Example 1 : Simple Function (rows() from data.cc) ====
1,072

edits

Navigation menu