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

UnitTest

See also

UnitTest