diff options
author | Eric Wong <e@80x24.org> | 2019-02-01 22:12:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-02-05 04:35:29 +0000 |
commit | 738f4daed7f0555f7ac11dc2f527bc53dddd4e5b (patch) | |
tree | 13eae96b43d8f07c7bf1b94ae795384fb6fd7a6c /t | |
parent | 390441cbff937a6048c257df9c91474d63a629bc (diff) | |
download | public-inbox-738f4daed7f0555f7ac11dc2f527bc53dddd4e5b.tar.gz |
Favor in-place utf8::decode since it's a bit faster without method dispatch overhead; and don't care about validity just yet. HlMod->do_hl itself should return "utf8" strings, since other parts of our code can use it, so it's not the job of ViewVCS to post-process HlMod output.
Diffstat (limited to 't')
-rw-r--r-- | t/hl_mod.t | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,6 +19,7 @@ my $orig = $str; { my $ref = $hls->do_hl(\$str, 'foo.perl'); is(ref($ref), 'SCALAR', 'got a scalar reference back'); + ok(utf8::valid($$ref), 'resulting string is utf8::valid'); like($$ref, qr/I can see you!/, 'we can see ourselves in output'); like($$ref, qr/&&/, 'escaped'); |