aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvincent-richard <[email protected]>2020-06-02 16:13:34 +0000
committervincent-richard <[email protected]>2020-06-02 16:13:34 +0000
commit9a10a839ec09d4cdd16cbb6ec067866c00db6bee (patch)
treebfd807077aa92a1efd99c9442f078362f4dd2b9d /tests
parentExpose Content-Disposition on net message parts. (diff)
downloadvmime-9a10a839ec09d4cdd16cbb6ec067866c00db6bee.tar.gz
vmime-9a10a839ec09d4cdd16cbb6ec067866c00db6bee.zip
Added test.
Diffstat (limited to 'tests')
-rw-r--r--tests/parser/mailboxGroupTest.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/parser/mailboxGroupTest.cpp b/tests/parser/mailboxGroupTest.cpp
index 11a7f08f..18ff425b 100644
--- a/tests/parser/mailboxGroupTest.cpp
+++ b/tests/parser/mailboxGroupTest.cpp
@@ -31,6 +31,7 @@ VMIME_TEST_SUITE_BEGIN(mailboxGroupTest)
VMIME_TEST(testParseNoEndDelimiter)
VMIME_TEST(testParseExtraChars)
VMIME_TEST(testEmptyGroup)
+ VMIME_TEST(testEncodedEmptyGroup)
VMIME_TEST_LIST_END
@@ -94,4 +95,13 @@ VMIME_TEST_SUITE_BEGIN(mailboxGroupTest)
VASSERT_EQ("count", 0, mgrp.getMailboxCount());
}
+ void testEncodedEmptyGroup() {
+
+ vmime::mailboxGroup mgrp;
+ mgrp.parse("=?us-ascii?Q?Undisclosed_recipients?=:;");
+
+ VASSERT_EQ("name", "Undisclosed recipients", mgrp.getName().getWholeBuffer());
+ VASSERT_EQ("count", 0, mgrp.getMailboxCount());
+ }
+
VMIME_TEST_SUITE_END