aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h')
-rw-r--r--libraries/ode-0.9/tests/CppTestHarness/CheckMacros.h27
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