Prev Next Index-> contents reference index search external Up-> CppAD utility test_boolofvoid CppAD-> Install Introduction AD ADFun preprocessor multi_thread utility ipopt_solve Example speed Appendix utility-> ErrorHandler NearEqual speed_test SpeedTest time_test test_boolofvoid NumericType CheckNumericType SimpleVector CheckSimpleVector nan pow_int Poly LuDetAndSolve RombergOne RombergMul Runge45 Rosen34 OdeErrControl OdeGear OdeGearControl CppAD_vector thread_alloc index_sort to_string set_union sparse_rc sparse_rcv test_boolofvoid Headings-> Syntax Purpose group width test name memory_ok ok Example

Object that Runs a Group of Tests

Syntax
test_boolofvoid Run(group, width)  Run(test, name)  ok = Run.summary(memory_ok)

Purpose
The object Run is used to run a group of tests functions and report the results on standard output.

group
The argument has prototype       const std::string& group  It is the name for this group of tests.

width
The argument has prototype       size_t width  It is the number of columns used to display the name of each test. It must be greater than the maximum number of characters in a test name.

test
The argument has prototype       bool test(void)  It is a function that returns true (when the test passes) and false otherwise.

name
The argument has prototype       const std::string& name  It is the name for the corresponding test .

memory_ok
The argument has prototype       bool memory_ok  It is false if a memory leak is detected (and true otherwise).

ok
This is true if all of the tests pass (including the memory leak test), otherwise it is false.

Example
See any of the main programs in the example directory; e.g., example/ipopt_solve.cpp.