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... | |
Definition in file test.h.
| #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.
| X |
a char *: the name of the group |
| #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.
emacs. Passing the test is indicated by the text 'passed test'; failing the test is indicated by the text 'error: failed test'.
1.0.0 written by Dimitri van Heesch,
© 1997-1999