Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

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

Don Omondi42884e4ee79a
diff --git a/crates/engine/src/tests/live.rs b/crates/engine/src/tests/live.rs
index 23904e488..aa09ad88f 100644
--- a/crates/engine/src/tests/live.rs
+++ b/crates/engine/src/tests/live.rs
@@ -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.