Go to the source code of this file.
|
| namespace | Test |
| | General test support.
|
| |
| namespace | Test::Array |
| | Tests for arrays.
|
| |
|
| #define | CHECK_TEST(T, M) |
| | Check the test result and handle failed test.
|
| |
| #define | START_TEST(T) |
| | Start new test.
|
| |
◆ CHECK_TEST
| #define CHECK_TEST |
( |
|
T, |
|
|
|
M |
|
) |
| |
Value:
olog << ind(3) << "Check: " << (M) << std::endl; \
if (!(T)) { \
problem = (M); goto failed; \
}
bool log
Whether to log the tests.
Check the test result and handle failed test.
Definition at line 40 of file array.cpp.
◆ START_TEST
Value:
olog.str(""); \
olog << ind(2) << "Testing: " << (T) << std::endl; \
} \
test = (T);
Start new test.
Definition at line 48 of file array.cpp.