about summary refs log tree commit homepage
path: root/t/nntpd.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-14 06:54:57 +0000
committerEric Wong <e@80x24.org>2016-06-14 06:55:25 +0000
commitb6974dbc81665427413020414a668ddb742e68f9 (patch)
treeb8ba966b203fd9cbbd29b4112235f8506c854aaf /t/nntpd.t
parent37bf2db81bbbe114d7fc5a00e30d3d5a6fa74de5 (diff)
downloadpublic-inbox-b6974dbc81665427413020414a668ddb742e68f9.tar.gz
Or whatever the appropriate Perl terminology, is...
And we will need to do something appropriate for other
encodings, too.  I still barely understand Perl Unicode
despite attempting to understand the docs over the years..
Diffstat (limited to 't/nntpd.t')
-rw-r--r--t/nntpd.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index 5f4ba57b..5875b737 100644
--- 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');