X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faddress.t;h=6f4bff6c42928f4707355d9c25b286f1e6dac042;hb=352956bcf1933bdaeba631deb4ade7dc7fd754b1;hp=e7c0d6a8132516dd6649ea88234a4123016f7940;hpb=69ae87044ca499aa401c73a9a1d764013539fb2d;p=public-inbox.git diff --git a/t/address.t b/t/address.t index e7c0d6a8..6f4bff6c 100644 --- a/t/address.t +++ b/t/address.t @@ -1,4 +1,4 @@ -# Copyright (C) 2016-2019 all contributors +# Copyright (C) 2016-2020 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -38,6 +38,11 @@ sub test_pkg { @names = $names->('"Quote Unneeded" '); is_deeply(['Quote Unneeded'], \@names, 'extra quotes dropped'); + + my @emails = $emails->('Local User '); + is_deeply([], \@emails , 'no address for local address'); + @names = $emails->('Local User '); + is_deeply([], \@names, 'no address, no name'); } test_pkg('PublicInbox::Address');