about summary refs log tree commit homepage
path: root/t/feed.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-06 06:52:18 +0000
committerEric Wong <e@80x24.org>2014-04-06 06:52:18 +0000
commit630bddde22338179f23be5143ca14135383826b6 (patch)
treeaae7790f24177f268a1d3419ba79ac6efded9aa1 /t/feed.t
parent127cde0f48d802f324c170e97477203e5bf8ad73 (diff)
downloadpublic-inbox-630bddde22338179f23be5143ca14135383826b6.tar.gz
This reduces duplicated/similar code and hopefully makes things more
consistent.
Diffstat (limited to 't/feed.t')
-rw-r--r--t/feed.t8
1 files changed, 5 insertions, 3 deletions
diff --git a/t/feed.t b/t/feed.t
index d16373ae..baa99fee 100644
--- a/t/feed.t
+++ b/t/feed.t
@@ -29,11 +29,12 @@ Message-Id: <$i\@example.com>
 Subject: zzz #$i
 Date: Thu, 01 Jan 1970 00:00:00 +0000
 
-> drop me
+> This is a long multi line quote so it should not be allowed to
+> show up in its entirty in the Atom feed.  drop me
 
 msg $i
 
-> drop me again
+> inline me here, short quote
 
 keep me
 EOF
@@ -49,7 +50,8 @@ EOF
                         is($p->format, "Atom", "parsed atom feed");
                         is(scalar $p->entries, 3, "parsed three entries");
                 }
-                unlike($feed, qr/drop me/, "quoted text dropped");
+                unlike($feed, qr/drop me/, "long quoted text dropped");
+                like($feed, qr/inline me here/, "short quoted text kept");
                 like($feed, qr/keep me/, "unquoted text saved");
         }