\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
test_boolofvoid¶
Object that Runs a Group of Tests¶
Syntax¶
include <cppad/utility/test_boolofvoid.hpp>
test_boolofvoid
Run ( group , width )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.
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 .