about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/hl_mod.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/hl_mod.t b/t/hl_mod.t
index 80f88907..c402f1f7 100644
--- a/t/hl_mod.t
+++ b/t/hl_mod.t
@@ -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');