]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/address.t
run update-copyrights from gnulib for 2019
[public-inbox.git] / t / address.t
index be0fc5b7b41aa1eec50e8a130e7c8ace619cf4e4..bea45daafb6f75d4187bd1f2c3a25a4b94df20ed 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -9,8 +9,9 @@ is_deeply([qw(e@example.com e@example.org)],
        [PublicInbox::Address::emails('User <e@example.com>, e@example.org')],
        'address extraction works as expected');
 
-is_deeply([PublicInbox::Address::emails('"ex@example.com" <ex@example.com>')],
-       [qw(ex@example.com)]);
+is_deeply(['user@example.com'],
+       [PublicInbox::Address::emails('<user@example.com (Comment)>')],
+       'comment after domain accepted before >');
 
 my @names = PublicInbox::Address::names(
        'User <e@e>, e@e, "John A. Doe" <j@d>, <x@x>');