From 08d255595a7a0ab469ff31d9865229331b545cd6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Sep 2020 07:32:32 +0000 Subject: t/nntpd: add test for the XPATH command 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. --- t/nntpd.t | 2 ++ 1 file changed, 2 insertions(+) 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(''), 'cross newsgroup HEAD by Message-ID'); + is($n->xpath(''), 'x.y.z/1', 'xpath hit'); + is($n->xpath(''), undef, 'xpath miss'); # pipelined requests: { -- cgit v1.2.3-24-ge0c7