about summary refs log tree commit homepage
path: root/t/eml.t
diff options
context:
space:
mode:
Diffstat (limited to 't/eml.t')
-rw-r--r--t/eml.t2
1 files changed, 2 insertions, 0 deletions
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) {