aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/testUtils.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index d68dba8d..55c0424e 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -42,7 +42,12 @@
#define VASSERT_TRUE(msg, cond) \
VASSERT(msg, cond)
#define VASSERT_FALSE(msg, cond) \
- VASSERT(!(msg, cond))
+ VASSERT(msg, !(cond))
+
+#define VASSERT_NOT_NULL(msg, cond) \
+ VASSERT(msg, cond != NULL)
+#define VASSERT_NULL(msg, cond) \
+ VASSERT(msg, cond == NULL)
#define VASSERT_EQ(msg, expected, actual) \
CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(msg), expected, actual)