about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-27 11:43:56 +0000
committerEric Wong <e@80x24.org>2019-01-28 06:14:53 +0000
commit6025d9881c00a0d4b538f06ce157eed416045e10 (patch)
tree355b8321a8fb1811f6667fcc7b4ed70372ac3e92 /t
parent603d9ebc517fcf89ab6d2e7845b118aa6b8e9069 (diff)
downloadpublic-inbox-6025d9881c00a0d4b538f06ce157eed416045e10.tar.gz
We need to post-process "highlight" output to ensure it doesn't
contain odd bytes which cause "wide character" warnings or
require odd glyphs in source form.
Diffstat (limited to 't')
-rw-r--r--t/hval.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/hval.t b/t/hval.t
index a193c296..bfc9a856 100644
--- a/t/hval.t
+++ b/t/hval.t
@@ -43,5 +43,8 @@ is('foo-bar', PublicInbox::Hval::to_filename("foo   bar\nanother line\n"),
 is('foo.bar', PublicInbox::Hval::to_filename("foo....bar"),
         'to_filename squeezes -');
 
+my $s = "\0\x07\n";
+PublicInbox::Hval::src_escape($s);
+is($s, "\\0\\a\n", 'src_escape works as intended');
 
 done_testing();