about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-24 03:37:15 +0000
committerEric Wong <e@80x24.org>2015-09-24 06:58:05 +0000
commitfa6c9b965cec725942601d7bc40b6687c7b86ab7 (patch)
tree4f69cff2192cf11cfa1eba52fc5c1eb1e6017701 /t
parentd901e7842e13ff5dbf316eb79961732b607ebb1c (diff)
downloadpublic-inbox-fa6c9b965cec725942601d7bc40b6687c7b86ab7.tar.gz
Oops, we need to test commands more closely :x
Add a missing prototype while we're at it for extra
checking.
Diffstat (limited to 't')
-rw-r--r--t/nntpd.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index 04444e48..ea2c3df8 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -144,7 +144,14 @@ EOF
                 }
         }
 
-        # TODO: upgrades and such
+        is_deeply($n->xover('1-'), {
+                '1' => ['hihi',
+                        'Me <me@example.com>',
+                        'Thu, 01 Jan 1970 06:06:06 +0000',
+                        '<nntp@example.com>',
+                        '',
+                        '202',
+                        '1' ] }, "XOVER works");
 
         ok(kill('TERM', $pid), 'killed nntpd');
         $pid = undef;