X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmid.t;h=9ad10a9912d17b3bfcfc21d25d3ad49018fe5b5c;hb=9bd675d33ad1e49bd2ebe12a1d216216e61380de;hp=8c307c825d22a7e2747c8f35fb1df0909c798dcb;hpb=0ef5872cee83f07c9ae7afceb2e92257507dc3ca;p=public-inbox.git
diff --git a/t/mid.t b/t/mid.t
index 8c307c82..9ad10a99 100644
--- a/t/mid.t
+++ b/t/mid.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors
+# Copyright (C) 2016-2019 all contributors
# License: AGPL-3.0+
use Test::More;
use PublicInbox::MID qw(mid_escape mids references);
@@ -36,6 +36,10 @@ is(mid_escape('foo%!@(bar)'), 'foo%25!@(bar)');
$mime->header_set('Message-ID', "");
is_deeply(mids($mime->header_obj), ['helloworld'],
'drop \t in Message-ID');
+
+ $mime->header_set('To', 'u@example.com');
+ $mime->header_set('References', ' ');
+ is_deeply(references($mime->header_obj), [qw(hello world)]);
}
done_testing();