aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r--tests/testUtils.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index 7ff3b40f..01910cbc 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -84,7 +84,7 @@
static AutoRegisterModule <VMIME_TEST_SUITE> autoRegisterModule;
#define VMIME_TEST_LIST_BEGIN CPPUNIT_TEST_SUITE(VMIME_TEST_SUITE);
-#define VMIME_TEST_LIST_END CPPUNIT_TEST_SUITE_END();
+#define VMIME_TEST_LIST_END CPPUNIT_TEST_SUITE_END(); public:
#define VMIME_TEST(name) CPPUNIT_TEST(name);
@@ -221,6 +221,14 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::datetime& d)
}
+inline std::ostream& operator<<(std::ostream& os, const vmime::encoding& enc)
+{
+ os << enc.generate();
+
+ return (os);
+}
+
+
}