]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/filter.t
filter: ensure CRs do not show up in lynx conversions
[public-inbox.git] / t / filter.t
index e4f6a2b09ada860fff07b12ed4d8da292610c56d..7a4bdb191abad34e86c6d816228fed28c19fad1e 100644 (file)
@@ -85,13 +85,14 @@ sub count_body_parts {
                        'Content-Type' => 'text/html',
                        Subject => 'HTML only badness',
                ],
-               body => "<html><body>bad body</body></html>\n",
+               body => "<html><body>bad body\r\n</body></html>\n",
        );
        is(1, PublicInbox::Filter->run($s), "run was a success");
        unlike($s->as_string, qr/<html>/, "HTML removed");
        is("text/plain", $s->header("Content-Type"),
                "content-type changed");
        like($s->body, qr/\A\s*bad body\s*\z/, "body");
+       unlike($s->body, qr/\r/, "body has no cr");
        like($s->header("X-Content-Filtered-By"),
                qr/PublicInbox::Filter/, "XCFB header added");
 }