mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 20:27:05 -06:00
test: the highlighted CMYK mesh PDF must have fills to check
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user