aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/mailboxGroupTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/mailboxGroupTest.cpp')
-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