From: Eric Wong Date: Fri, 11 Sep 2020 07:32:32 +0000 (+0000) Subject: t/nntpd: add test for the XPATH command X-Git-Tag: v1.6.0~14 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=08d255595a7a0ab469ff31d9865229331b545cd6 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. --- 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: {