From feabba44702cf0720535b3af8e1d0ca89ae2b63d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Feb 2013 17:54:36 +0100 Subject: Unit tests for SMTPCommand and SMTPCommandSet. Fixed SMTPCommandSet::isFinished(). --- tests/testUtils.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/testUtils.hpp') 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) -- cgit v1.2.3