]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
t/nntpd: add test for the XPATH command
[public-inbox.git] / t / nntpd.t
index a3d974cfd2d92b6b6f1c995e9c720cc6287f0ce7..14db1a93019771426635cecc8fafedd9d2c7c920 100644 (file)
--- 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:
        {