X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Feml.t;h=0cf48f225a45c50d0bb70e10acd8274525240c08;hb=6e0ac7612095397ef3b9e019f772d724c62eac5b;hp=ebd45c1372d8fe5be42b2c8ec9636f3adafa3b17;hpb=af0b0fb7a454470a32c452119d0392e0dedb3fe1;p=public-inbox.git diff --git a/t/eml.t b/t/eml.t index ebd45c13..0cf48f22 100644 --- a/t/eml.t +++ b/t/eml.t @@ -26,6 +26,8 @@ sub mime_load ($) { is($str, "hi\n", '->new modified body like Email::Simple'); is($eml->body, "hi\n", '->body works'); is($eml->as_string, "a: b\n\nhi\n", '->as_string'); + my $empty = PublicInbox::Eml->new("\n\n"); + is($empty->as_string, "\n\n", 'empty message'); } for my $cls (@classes) {