diff options
author | Vincent Richard <[email protected]> | 2008-04-28 19:49:48 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2008-04-28 19:49:48 +0000 |
commit | 439b2b3e90cb78a81e8d42ffdcd8543c64b1d1de (patch) | |
tree | a51cb6e1f77bb6f2f6a7c1d4c14df290bf7370b7 /tests/parser/htmlTextPartTest.cpp | |
parent | Removed old GNU TLS error. (diff) | |
download | vmime-439b2b3e90cb78a81e8d42ffdcd8543c64b1d1de.tar.gz vmime-439b2b3e90cb78a81e8d42ffdcd8543c64b1d1de.zip |
Fixed extra space in subject (see https://sourceforge.net/forum/message.php?msg_id=4894970).
Diffstat (limited to '')
-rw-r--r-- | tests/parser/htmlTextPartTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <vmime::message> msg = vmime::create <vmime::message>(); 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 <vmime::message> msg = vmime::create <vmime::message>(); 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 <vmime::message> msg = vmime::create <vmime::message>(); 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)); |