Next: TEST_FP, Previous: TEST_PASS, Up: Test Macros
indicate that a test failed
#include <testlib.h> TEST_FAIL( desc ) TEST_FAIL_LINE( line )
- line
- the line number to output
- desc
- a short description of the test being performed
TEST_FAIL
is called to indicate that a test failed. It is
usually used when the determination of such is more complicated
than allowed by the other testlib
mechanisms.
TEST_FAIL( "+= operator, length");