]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
nntp: fix LIST OVERVIEW.FMT ordering and format
[public-inbox.git] / t / nntpd.t
index e264fa6b5abbbfe255291b22670cc6952fdb3d94..bebecc6920d947939f644bae675123fcd1b3f4c3 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -101,6 +101,12 @@ EOF
        is_deeply([$n->group($group)], [ qw(0 1 1), $group ], 'GROUP works');
        is_deeply($n->listgroup($group), [1], 'listgroup OK');
 
+       {
+               my $expect = [ qw(Subject: From: Date: Message-ID:
+                               References: Bytes: Lines: Xref:full) ];
+               is_deeply($n->overview_fmt, $expect,
+                       'RFC3977 8.4.2 compliant LIST OVERVIEW.FMT');
+       }
        SKIP: {
                $n->can('starttls') or
                        skip('Net::NNTP too old to support STARTTLS', 2);