From 8078e95ad36e48bbe4f4846f9a8b0ee8e88d7e88 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:23:58 -0700 Subject: Drop a highlighter check that tested the harness The filter hands a NUL through untouched, and only the harness's copy of cgit's sink cut the text there, so the check would have failed the day the filter replaced NULs the way about-render does. --- tests/extensions/test-syntax-highlight.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/extensions/test-syntax-highlight.lua b/tests/extensions/test-syntax-highlight.lua index f9f99a8..5fc6ea3 100644 --- a/tests/extensions/test-syntax-highlight.lua +++ b/tests/extensions/test-syntax-highlight.lua @@ -106,10 +106,4 @@ out, ret = render("empty.fake", "") h.equals("an empty blob renders empty", out, "") h.equals("an empty blob still answers zero", ret, 0) --- cgit's C sink stops at the first NUL byte, which the script documents for --- binaries that slip past the text detection. -out = render("blob.bin", "ab\0cd") -h.contains("bytes before a nul survive", out, "ab") -h.excludes("bytes after a nul are dropped", out, "cd") - h.finish() -- cgit