TestFunctionCount
Unit test for confirming that the reported number of function evaluations equals the true number of function evaluations.
Back to Simple Unit Testing Toolbox Documentation.
Contents
Constructor
unit_test = TestFunctionCount(f,g,name)
| Variable | Description | Format |
| f | function to be input into an algorithm | function_handle |
| g | function that runs f through an algorithm and returns the number of times that f was evaluated (as reported by the algorithm) | function_handle |
| name | test name | char array |
Superclass
- TestFunctionCount is a subclass of the UnitTest class (i.e. UnitTest is the superclass of TestFunctionCount). See the UnitTest class's documentation for documentation of methods that the TestFunctionCount class also possesses.