diff options
author | Eric Wong <e@80x24.org> | 2015-10-02 21:15:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-10-02 21:19:39 +0000 |
commit | 22d8fcc3d37b9ce13a5088f1d0557078c9a84062 (patch) | |
tree | d142185177ea717dcf262dfe7d71aef7ab86544e /t | |
parent | e4db71c8ce14cbb61aea0f39e29cb61b23ffd109 (diff) | |
download | public-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.t | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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(); |