diff --git a/crates/cad/src/import/hatch.rs b/crates/cad/src/import/hatch.rs index 068d873ca5..80cd9339a9 100644 --- a/crates/cad/src/import/hatch.rs +++ b/crates/cad/src/import/hatch.rs @@ -562,6 +562,7 @@ mod tests { let p = pieces(&bp); let row = |y: f64| p.iter().filter(|(a, _)| (a.y - y).abs() < 1e-9).map(|(a, b)| (a.x, b.x)).collect::>(); let first = row(50.0); + assert!(first.len() > 4, "{first:?}"); // The pattern at y 50 starts at x 5, so the period before it puts a dot on the boundary. assert_eq!(&first[..4], &[(0.0, 0.0), (5.0, 8.0), (10.0, 10.0), (15.0, 18.0)]); assert!(first.iter().all(|(a, b)| *a >= 0.0 && *b <= 100.0));