X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fnntp.t;h=03c7f08361a25fd7107db1be733d565cf7469e4c;hb=3d41aa23f35501ca92aab8aa42980fa73f7fa74f;hp=de07abb0f38ea9a82b8560329dd9d17a703cdb16;hpb=3f779258173530ca88f31e1dc5332f951d2c44cd;p=public-inbox.git diff --git a/t/nntp.t b/t/nntp.t index de07abb0..03c7f083 100644 --- a/t/nntp.t +++ b/t/nntp.t @@ -1,5 +1,5 @@ -# Copyright (C) 2015 all contributors -# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt) +# Copyright (C) 2015-2018 all contributors +# License: AGPL-3.0+ use strict; use warnings; use Test::More; @@ -112,7 +112,7 @@ use_ok 'PublicInbox::Inbox'; PublicInbox::NNTP::set_nntp_headers($mime->header_obj, $ng, 1, $mid); is_deeply([ $mime->header('Message-ID') ], [ "<$mid>" ], 'Message-ID unchanged'); - is_deeply([ $mime->header('Archived-At') ], [ "<${u}a%40b/>" ], + is_deeply([ $mime->header('Archived-At') ], [ "<${u}a\@b/>" ], 'Archived-At: set'); is_deeply([ $mime->header('List-Archive') ], [ "<$u>" ], 'List-Archive: set'); @@ -128,7 +128,7 @@ use_ok 'PublicInbox::Inbox'; is_deeply([ $mime->header('Message-ID') ], [ "<$mid>" ], 'Message-ID unchanged'); is_deeply([ $mime->header('Archived-At') ], - [ "<${u}a%40b/>", '' ], + [ "<${u}a\@b/>", '' ], 'Archived-At: appended'); is_deeply([ $mime->header('Xref') ], [ 'example.com test:2' ], 'Old Xref: clobbered');