summaryrefslogtreecommitdiff
path: root/tests/UnitTests.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests.h')
-rw-r--r--tests/UnitTests.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/UnitTests.h b/tests/UnitTests.h
new file mode 100644
index 00000000..e97456b4
--- /dev/null
+++ b/tests/UnitTests.h
@@ -0,0 +1,14 @@
+#ifndef _UNITTESTS_H
+#define _UNITTESTS_H
+
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/Exception.h>
+#include <cppunit/Portability.h>
+
+#define assertDoublesEqual(x,y,z,w) CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(x,y,z,w)
+#define assertEquals(x,y) CPPUNIT_ASSERT_EQUAL(x,y)
+#define assertEqualsMessage(x,y,z) CPPUNIT_ASSERT_EQUAL_MESSAGE(x,y,z)
+#define assertMessage(x,y) CPPUNIT_ASSERT_MESSAGE(x,y)
+#define assertThrow(x,y) CPPUNIT_ASSERT_THROW(x,y)
+
+#endif /* _UNITTESTS_H */