X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faddress.t;h=1f20702a2dbb7182a0b2c41fcadb675a2a97a204;hb=d62d98b9a7f502da65673f0b83a6d06312c060d9;hp=e7c0d6a8132516dd6649ea88234a4123016f7940;hpb=69ae87044ca499aa401c73a9a1d764013539fb2d;p=public-inbox.git diff --git a/t/address.t b/t/address.t index e7c0d6a8..1f20702a 100644 --- a/t/address.t +++ b/t/address.t @@ -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');