about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
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();