X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Feml.t;h=0cf48f225a45c50d0bb70e10acd8274525240c08;hb=69b5ab18a594fa434d79cacee35c4d9a0df7b55c;hp=4d1c1216f7c9a611ab0b4b3ebaa0b55aacf90f2f;hpb=0366c73f20b436d4d5307a56c2b6ac93b115f23f;p=public-inbox.git
diff --git a/t/eml.t b/t/eml.t
index 4d1c1216..0cf48f22 100644
--- a/t/eml.t
+++ b/t/eml.t
@@ -1,5 +1,5 @@
#!perl -w
-# Copyright (C) 2020 all contributors
+# Copyright (C) 2020-2021 all contributors
# License: AGPL-3.0+
use strict;
use Test::More;
@@ -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) {