diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-all.mm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/test-all.mm b/tests/test-all.mm index 6107730e..73981e82 100644 --- a/tests/test-all.mm +++ b/tests/test-all.mm @@ -285,6 +285,14 @@ static void testAddresses() MCLog("%s", MCUTF8DESC(str)); } +static void testAttachments() +{ + mailcore::Attachment *attachment = mailcore::Attachment::attachmentWithText(MCSTR("Hello World")); + attachment->setCharset(NULL); + mailcore::String * str = attachment->decodedString(); + MCLog("%s", MCUTF8DESC(str)); +} + void testObjC() { MCOIMAPSession *session = [[MCOIMAPSession alloc] init]; @@ -341,8 +349,9 @@ void testAll() //testAsyncSMTP(data); //testAsyncIMAP(); //testAsyncPOP(); - testAddresses(); - //testObjC(); + //testAddresses(); + //testAttachments(); + testObjC(); MCLog("pool release"); pool->release(); |