]> Sergey Matveev's repositories - public-inbox.git/blob - t/mid.t
b0af8386cdfdf09e73c39881aef0c8e70a99d58a
[public-inbox.git] / t / mid.t
1 # Copyright (C) 2016 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
3 use Test::More;
4 use PublicInbox::MID qw(mid_escape);
5
6 is(mid_escape('foo!@(bar)'), 'foo!@(bar)');
7 is(mid_escape('foo%!@(bar)'), 'foo%25!@(bar)');
8 is(mid_escape('foo%!@(bar)'), 'foo%25!@(bar)');
9
10 done_testing();
11 1;