about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/view.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/view.t b/t/view.t
index 3107285c..463fc076 100644
--- a/t/view.t
+++ b/t/view.t
@@ -144,4 +144,13 @@ EOF
         like($html, qr/\bhi = bye\b/, "HTML output decoded QP");
 }
 
+
+{        # XXX dirty hack
+        use PublicInbox::MID qw/mid_compressed/;
+        like(mid_compressed('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/,
+                "percent always converted to sha1 to workaround buggy httpds");
+        is(mid_compressed('foobar@wtf'), 'foobar@wtf',
+                'regular MID not compressed');
+}
+
 done_testing();