(test-rfc2231-9): New testcase.
authorshuhei <shuhei>
Sun, 22 Apr 2001 05:31:31 +0000 (05:31 +0000)
committershuhei <shuhei>
Sun, 22 Apr 2001 05:31:31 +0000 (05:31 +0000)
tests/test-rfc2231.el

index e444f43..48d91ef 100644 (file)
  title*=us-ascii'en-us'This%20is%20%2a%2a%2afun%2a%2a%2a")
        "title")
       "This is ***fun***"))))
+
+;;; unencoded segments MUST NOT be decoded.
+(luna-define-method test-rfc2231-9 ((case test-rfc2231))
+  (lunit-assert
+   (string=
+    (mime-content-type-parameter
+     (mime-parse-Content-Type "application/x-stuff;
+ title*0*=us-ascii'en'This%20is%20even%20more%20;
+ title*1*=%2A%2A%2Afun%2A%2A%2A%20;
+ title*2=\"isn%27t%20it!\"")
+     "title")
+    "This is even more ***fun*** isn%27t%20it!")))