diff options
author | dan miller | 2007-10-19 05:20:07 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:20:07 +0000 |
commit | fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd (patch) | |
tree | 51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h | |
parent | resubmitting ode (diff) | |
download | opensim-SC_OLD-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.zip opensim-SC_OLD-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.gz opensim-SC_OLD-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.bz2 opensim-SC_OLD-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.xz |
dont ask
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h')
-rw-r--r-- | libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h b/libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h deleted file mode 100644 index 85040b1..0000000 --- a/libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | #ifndef CHECK_MACROS_H | ||
2 | #define CHECK_MACROS_H | ||
3 | |||
4 | #include "Checks.h" | ||
5 | |||
6 | #define CHECK(value) \ | ||
7 | if (!CppTestHarness::Check(value)) \ | ||
8 | testResults_.ReportFailure(__FILE__, __LINE__, #value); | ||
9 | |||
10 | #define CHECK_EQUAL(actual, expected) \ | ||
11 | if (!CppTestHarness::CheckEqual(actual, expected)) \ | ||
12 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual)); | ||
13 | |||
14 | #define CHECK_CLOSE(actual, expected, tolerance) \ | ||
15 | if (!CppTestHarness::CheckClose(actual, expected, tolerance)) \ | ||
16 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual)); | ||
17 | |||
18 | #define CHECK_ARRAY_EQUAL(actual, expected, count) \ | ||
19 | if (!CppTestHarness::CheckArrayEqual(actual, expected, count)) \ | ||
20 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual, count)); | ||
21 | |||
22 | #define CHECK_ARRAY_CLOSE(actual, expected, count, tolerance) \ | ||
23 | if (!CppTestHarness::CheckArrayClose(actual, expected, count, tolerance)) \ | ||
24 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual, count)); | ||
25 | |||
26 | #endif | ||
27 | |||