aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r--tests/testUtils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index 4fa6b457..1e138301 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -53,6 +53,8 @@
#define VASSERT_EQ(msg, expected, actual) \
CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(msg), expected, actual)
+#define VASSERT_NEQ(msg, expected, actual) \
+ CPPUNIT_ASSERT_MESSAGE(std::string(msg), (expected) != (actual))
#define VASSERT_THROW(msg, expression, exceptionType) \
CPPUNIT_ASSERT_THROW(expression, exceptionType)