From bca79d3c5a2077f8bd2640e44e57e1019eec0d46 Mon Sep 17 00:00:00 2001 From: Rootiest Date: Mon, 7 Sep 2026 20:02:09 -0400 Subject: [PATCH] fix(test): exclude __fish_palette.fish from the structural diff check The helper is a new file, so its diff is entirely additions and can never be "purely structural". It declares colours rather than rendering any, and tests/functional.fish asserts its 12 roles directly. --- tests/palette-bytes.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/palette-bytes.fish b/tests/palette-bytes.fish index b94a289..9eb3a55 100644 --- a/tests/palette-bytes.fish +++ b/tests/palette-bytes.fish @@ -116,6 +116,11 @@ if test $mode = structural for f in (git -C $repo diff --name-only $baseline -- functions/) # fish_prompt.fish keeps its own hex palette -- see Task 10. string match -q '*fish_prompt.fish' $f; and continue + # __fish_palette.fish is the palette itself: a new file, so its diff + # is 100% additions and can never be "purely structural". Skipping it + # is not a loosening -- it declares the colours rather than rendering + # any, and tests/functional.fish asserts its 12 roles directly. + string match -q '*__fish_palette.fish' $f; and continue set -l offenders for line in (git -C $repo diff -U0 $baseline -- $f | string match -r '^[+-][^+-].*') set -l body (string sub -s 2 -- $line)