1 #include <mimetic/contenttype.h>
3 #include "t.contenttype.h"
9 void contenttype::parser()
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");
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");