test: the highlighted CMYK mesh PDF must have fills to check

This commit is contained in:
Don Omondi
2026-10-30 00:15:58 +07:00
committed by bflatastic
parent 239286ca83
commit 42884e4ee7
+1
View File
@@ -1218,6 +1218,7 @@ fn cmyk_mesh_highlight_lightens_in_cmyk() {
assert!(m.points.iter().all(|p| matches!(p.color, Color::Cmyk { .. })), "{app}");
let (fills, warnings) = pdf_fill_colours(&mut s);
assert!(warnings.is_empty(), "{app}: no RGB to separate {warnings:?}");
assert!(!fills.is_empty(), "{app}: no PDF fills");
for f in &fills {
let [c, m, y, k] = f[..] else { panic!("{app}: not CMYK {f:?}") };
// Every ink in proportion to C0 M40 Y60 K10, lightened by at most half.