From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5F2B01F670 for ; Fri, 11 Sep 2020 07:32:34 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] t/nntpd: add test for the XPATH command Date: Fri, 11 Sep 2020 07:32:32 +0000 Message-Id: <20200911073233.29895-3-e@80x24.org> In-Reply-To: <20200911073233.29895-1-e@80x24.org> References: <20200911073233.29895-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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: {