From 439b2b3e90cb78a81e8d42ffdcd8543c64b1d1de Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 28 Apr 2008 19:49:48 +0000 Subject: Fixed extra space in subject (see https://sourceforge.net/forum/message.php?msg_id=4894970). --- tests/parser/htmlTextPartTest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/parser/htmlTextPartTest.cpp') diff --git a/tests/parser/htmlTextPartTest.cpp b/tests/parser/htmlTextPartTest.cpp index 3f9a718e..6276db26 100644 --- a/tests/parser/htmlTextPartTest.cpp +++ b/tests/parser/htmlTextPartTest.cpp @@ -81,6 +81,10 @@ VMIME_TEST_SUITE_BEGIN vmime::ref msg = vmime::create (); msg->parse(msgString); + // Sanity checks + VASSERT_EQ("part-count1", 2, msg->getBody()->getPartCount()); + VASSERT_EQ("part-count2", 2, msg->getBody()->getPartAt(1)->getBody()->getPartCount()); + vmime::htmlTextPart htmlPart; htmlPart.parse(msg, msg->getBody()->getPartAt(1), msg->getBody()->getPartAt(1)->getBody()->getPartAt(0)); @@ -132,6 +136,10 @@ VMIME_TEST_SUITE_BEGIN vmime::ref msg = vmime::create (); msg->parse(msgString); + // Sanity checks + VASSERT_EQ("part-count1", 2, msg->getBody()->getPartCount()); + VASSERT_EQ("part-count2", 3, msg->getBody()->getPartAt(1)->getBody()->getPartCount()); + vmime::htmlTextPart htmlPart; htmlPart.parse(msg, msg->getBody()->getPartAt(1), msg->getBody()->getPartAt(1)->getBody()->getPartAt(1)); @@ -198,6 +206,10 @@ VMIME_TEST_SUITE_BEGIN vmime::ref msg = vmime::create (); msg->parse(msgString); + // Sanity checks + VASSERT_EQ("part-count1", 2, msg->getBody()->getPartCount()); + VASSERT_EQ("part-count2", 2, msg->getBody()->getPartAt(1)->getBody()->getPartCount()); + vmime::htmlTextPart htmlPart; htmlPart.parse(msg, msg->getBody()->getPartAt(1), msg->getBody()->getPartAt(1)->getBody()->getPartAt(1)); -- cgit v1.2.3