Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Sources   Namespace Members   Compound Members   File Members  

test.h File Reference

Contains declarations used for automated testing. More...


Namespaces

namespace  test

Defines

#define test_start_section (X)
Indicate the start of a group of tests. More...

#define require (X)
Do a test. More...


Detailed Description

Contains declarations used for automated testing.

Author(s):
$Author: ben $
Version:
$Revision: 6.5 $
Date:
$Date: 2002/07/13 17:37:21 $

Definition in file test.h.


Define Documentation

#define test_start_section (X)

Indicate the start of a group of tests.

This writes a sub header to standard output. The header indicates the name of the group and the line number and file name of the source-code file. The line numebr and file name are written in the format recognised by emacs.

Parameters:
X   a char *: the name of the group

Definition at line 148 of file test.h.

#define require (X)

Do a test.

The macro evaluates a boolean expression, which indicates whether the test was passed. The macro reports the outcome of the test to standard output. If the test failed, an internal counter of the number of test failues is incremented.

See also:
end_test for the use of this counter.

The report gives the line number and file name of the source-code file, the boolean expression, and indicates whether the test was passed. The line numebr and file name are written in the format recognised by emacs. Passing the test is indicated by the text 'passed test'; failing the test is indicated by the text 'error: failed test'.

Parameters:
X   a Boolean expression: this expression must evaluate to true for the test to be passed, and failure of the test is indicated by the expression evaluating to false; that is, the expression is a assertion

Definition at line 172 of file test.h.


Generated at Sun Jul 14 20:38:05 2002 for Mapper by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999