about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-10-02 21:15:07 +0000
committerEric Wong <e@80x24.org>2015-10-02 21:19:39 +0000
commit22d8fcc3d37b9ce13a5088f1d0557078c9a84062 (patch)
treed142185177ea717dcf262dfe7d71aef7ab86544e /t
parente4db71c8ce14cbb61aea0f39e29cb61b23ffd109 (diff)
downloadpublic-inbox-22d8fcc3d37b9ce13a5088f1d0557078c9a84062.tar.gz
We use it as a general compressor for identifiers such as
subject paths, so using the "mid_" prefix probably is not
appropriate.
Diffstat (limited to 't')
-rw-r--r--t/view.t11
1 files changed, 5 insertions, 6 deletions
diff --git a/t/view.t b/t/view.t
index 325f509c..568ab303 100644
--- a/t/view.t
+++ b/t/view.t
@@ -145,13 +145,12 @@ EOF
         like($html, qr/\bhi = bye\b/, "HTML output decoded QP");
 }
 
-
-{        # XXX dirty hack
-        use PublicInbox::MID qw/mid_compress/;
-        like(mid_compress('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/,
+{
+        use PublicInbox::MID qw/id_compress/;
+        like(id_compress('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/,
                 "percent always converted to sha1 to workaround buggy httpds");
-        is(mid_compress('foobar@wtf'), 'foobar@wtf',
-                'regular MID not compressed');
+        is(id_compress('foobar-wtf'), 'foobar-wtf',
+                'regular ID not compressed');
 }
 
 done_testing();