Change Section to debug for libmimetic0-dbg.
[debian/mimetic.git] / test / t.contenttype.cxx
1 #include <mimetic/contenttype.h>
2 #include <string>
3 #include "t.contenttype.h"
4
5 namespace mimetic
6 {
7 using namespace std;
8
9 void contenttype::parser()
10 {
11     ContentType * pCt;
12     pCt = new ContentType("multipart/mixed; boundary=\"--abcdef\"");
13     TEST_ASSERT_EQUALS_P(pCt->type(), "MuLtIpArT");
14     TEST_ASSERT_EQUALS_P(pCt->subtype(), "MIXed");
15     TEST_ASSERT_EQUALS_P(pCt->param("BOUNDary"), "--abcdef");
16     delete pCt;
17
18     pCt = new ContentType("multipart/mixed;\t boundary=\"--abcdef\";");
19     TEST_ASSERT_EQUALS_P(pCt->type(), "MuLtIpArT");
20     TEST_ASSERT_EQUALS_P(pCt->subtype(), "MIXed");
21     TEST_ASSERT_EQUALS_P(pCt->param("BOUNDary"), "--abcdef");
22     delete pCt;
23 }
24
25 }