diff options
author | Ken Grigsby <grigsby@thursby.com> | 2013-04-19 19:10:49 -0500 |
---|---|---|
committer | Ken Grigsby <grigsby@thursby.com> | 2013-04-19 19:10:49 -0500 |
commit | 8123121157b7fd2ec27ee1b9f7f6a23357955b4e (patch) | |
tree | ad1a647e5aa1141cdcec5c7c8f9383aa01bb061e /tests | |
parent | 6397bdb1cf09503680b8b0861ea237fa8199a637 (diff) |
added methods to decode data as strings
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(); |