X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faddress.t;h=eced5c4632cdea1e86990ac7e594e61acf75c6ab;hb=refs%2Ftags%2Fv1.1.0-pre1;hp=be0fc5b7b41aa1eec50e8a130e7c8ace619cf4e4;hpb=5cbb8df04448baf6c07c3de652d287bd2a0a3299;p=public-inbox.git diff --git a/t/address.t b/t/address.t index be0fc5b7..eced5c46 100644 --- a/t/address.t +++ b/t/address.t @@ -1,4 +1,4 @@ -# Copyright (C) 2016 all contributors +# Copyright (C) 2016-2018 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -9,8 +9,9 @@ is_deeply([qw(e@example.com e@example.org)], [PublicInbox::Address::emails('User , e@example.org')], 'address extraction works as expected'); -is_deeply([PublicInbox::Address::emails('"ex@example.com" ')], - [qw(ex@example.com)]); +is_deeply(['user@example.com'], + [PublicInbox::Address::emails('')], + 'comment after domain accepted before >'); my @names = PublicInbox::Address::names( 'User , e@e, "John A. Doe" , ');