aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/disposition.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/unit/disposition.c b/test/unit/disposition.c
index c49a541f..08ac929e 100644
--- a/test/unit/disposition.c
+++ b/test/unit/disposition.c
@@ -39,18 +39,18 @@ struct testcase cases[] = {
/* See http://test.greenbytes.de/tech/tc2231/ */
{ "inline", "inline", NULL },
- // FIXME: { "\"inline\"", NULL, NULL },
+ { "\"inline\"", NULL, NULL },
{ "inline; filename=\"foo.html\"", "inline", "foo.html" },
{ "inline; filename=\"Not an attachment!\"", "inline", "Not an attachment!" },
{ "inline; filename=\"foo.pdf\"", "inline", "foo.pdf" },
- // FIXME: { "\"attachment\"", NULL, NULL },
+ { "\"attachment\"", NULL, NULL },
{ "attachment", "attachment", NULL },
{ "ATTACHMENT", "ATTACHMENT", NULL },
{ "attachment; filename=\"foo.html\"", "attachment", "foo.html" },
{ "attachment; filename=\"0000000000111111111122222\"", "attachment", "0000000000111111111122222" },
{ "attachment; filename=\"00000000001111111111222222222233333\"", "attachment", "00000000001111111111222222222233333" },
{ "attachment; filename=\"f\\oo.html\"", "attachment", "f_oo.html" },
- // FIXME: { "attachment; filename=\"\\\"quoting\\\" tested.html\"", "attachment", "\"quoting\" tested.html" },
+ { "attachment; filename=\"\\\"quoting\\\" tested.html\"", "attachment", "\"quoting\" tested.html" },
{ "attachment; filename=\"Here's a semicolon;.html\"", "attachment", "Here's a semicolon;.html" },
{ "attachment; foo=\"bar\"; filename=\"foo.html\"", "attachment", "foo.html" },
{ "attachment; foo=\"\\\"\\\\\";filename=\"foo.html\"", "attachment", "foo.html" },
@@ -72,15 +72,15 @@ struct testcase cases[] = {
{ "attachment; filename =\"foo.html\"", "attachment", "foo.html" },
{ "attachment; filename=\"foo.html\"; filename=\"bar.html\"", "attachment", "foo.html" },
{ "attachment; filename=foo[1](2).html", "attachment", "foo[1](2).html" },
- // FIXME: { "attachment; filename=foo-ä.html", "attachment", NULL },
- // FIXME: { "attachment; filename=filename=foo-ä.html", "attachment", NULL },
- // FIXME: { "filename=foo.html", NULL, NULL },
- // FIXME: { "x=y; filename=foo.html", NULL, NULL },
- // FIXME: {"\"foo; filename=bar;baz\"; filename=qux", NULL, NULL },
- // FIXME: { "filename=foo.html, filename=bar.html", NULL, NULL },
- // FIXME: { "; filename=foo.html", NULL, NULL },
- // FIXME: { ": inline; attachment; filename=foo.html", NULL, NULL },
- // FIXME: { "inline; attachment; filename=foo.html", NULL, NULL },
+ { "attachment; filename=foo-ä.html", "attachment", NULL },
+ { "attachment; filename=filename=foo-ä.html", "attachment", NULL },
+ { "filename=foo.html", NULL, NULL },
+ { "x=y; filename=foo.html", NULL, NULL },
+ {"\"foo; filename=bar;baz\"; filename=qux", NULL, NULL },
+ { "filename=foo.html, filename=bar.html", NULL, NULL },
+ { "; filename=foo.html", NULL, NULL },
+ { ": inline; attachment; filename=foo.html", NULL, NULL },
+ { "inline; attachment; filename=foo.html", "inline", "foo.html" },
{ "attachment; inline; filename=foo.html", "attachment", "foo.html" },
{ "attachment; filename=\"foo.html\".txt", "attachment", "foo.html" },
{ "attachment; filename=\"bar", "attachment", NULL },
@@ -89,14 +89,14 @@ struct testcase cases[] = {
{ "attachment; foo=foo filename=bar", "attachment", "bar" },
{ "attachment; filename=bar foo=foo ", "attachment", "bar" },
{ "attachment filename=bar", "attachment", NULL },
- // FIXME: { "filename=foo.html; attachment", NULL, NULL },
+ { "filename=foo.html; attachment", NULL, NULL },
{ "attachment; xfilename=foo.html", "attachment", NULL },
{ "attachment; filename=\"/foo.html\"", "attachment", "_foo.html" },
{ "attachment; filename=\"\\\\foo.html\"", "attachment", "__foo.html" },
{ "foobar", "foobar", NULL },
{ "attachment; example=\"filename=example.txt\"", "attachment", NULL },
{ "attachment; filename=\"foo-ae.html\"; filename*=UTF-8''foo-%c3%a4.html", "attachment", "foo-ae.html" },
- // FIXME: { "attachment; filename==?ISO-8859-1?Q?foo-=E4.html?=", "attachment", NULL },
+ { "attachment; filename==?ISO-8859-1?Q?foo-=E4.html?=", "attachment", NULL },
{ "attachment; filename=\"=?ISO-8859-1?Q?foo-=E4.html?=\"", "attachment", "=?ISO-8859-1?Q?foo-=E4.html?=" },
};