testlib
is a library of routines and C/C++
macros which
make the creation of code for testing libraries and programs a little
easier.
The routines are available both to C and C++
programs, with the
same API. The internals are packaged a little differently
(see Implementation).
The macros take an expression and its expected result, and print out a message describing the test and the result of the equivalency. They keep track of the number of passes and failures, and output a summary at the end of the session. The main benefit of using these macros is that you don't have to worry about all of the pretty printing required to get a readable test report.