]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
nntp: do not double-encode UTF-8 body
[public-inbox.git] / t / nntpd.t
index 5f4ba57ba0c3b89bc0fe7e6b528ba723f50b9ef7..5875b737360b35a41803f1327339e6fe8e4f2e0d 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -175,6 +175,8 @@ EOF
 
        is_deeply($n->head(1), $n->head('<nntp@example.com>'), 'HEAD OK');
        is_deeply($n->body(1), $n->body('<nntp@example.com>'), 'BODY OK');
+       is($n->body(1)->[0], "This is a test message for El\xc3\xa9anor\n",
+               'body really matches');
        my $art = $n->article(1);
        is(ref($art), 'ARRAY', 'got array for ARTICLE');
        is_deeply($art, $n->article('<nntp@example.com>'), 'ARTICLE OK');