about summary refs log tree commit homepage
path: root/t/nntpd.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-11 07:32:32 +0000
committerEric Wong <e@80x24.org>2020-09-12 20:29:12 +0000
commit08d255595a7a0ab469ff31d9865229331b545cd6 (patch)
treeb4a4a5b502ae694110debb0b9280aa70d0f2c582 /t/nntpd.t
parentd11feea98718f2abb109af4216a36bdbd21b7191 (diff)
downloadpublic-inbox-08d255595a7a0ab469ff31d9865229331b545cd6.tar.gz
It's only in RFC 2980 (not 977 or 3977), but Net::NNTP has
supported it since 2001, at least.  We'll be making changes
to avoid pathological behavior, so test it, first.
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 a3d974cf..14db1a93 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -295,6 +295,8 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000
                 'cross newsgroup BODY by Message-ID');
         ok($n->head('<testmessage@example.com>'),
                 'cross newsgroup HEAD by Message-ID');
+        is($n->xpath('<testmessage@example.com>'), 'x.y.z/1', 'xpath hit');
+        is($n->xpath('<non-existent@example.com>'), undef, 'xpath miss');
 
         # pipelined requests:
         {