diff --git a/crates/engine/src/tests/script_dom_paths.rs b/crates/engine/src/tests/script_dom_paths.rs index f2f148408c..ac8ecc128e 100644 --- a/crates/engine/src/tests/script_dom_paths.rs +++ b/crates/engine/src/tests/script_dom_paths.rs @@ -1669,7 +1669,9 @@ fn reading_and_moving_points_counts_the_subpaths_a_few_times() { let built = crate::script::LAYOUTS_BUILT.with(std::cell::Cell::get); assert!(built < 10, "{built} layouts for 1000 points"); let n = node(&s, id); - assert!(n.path_data().unwrap().subpaths.iter().flat_map(|sp| &sp.anchors).all(|an| an.p.y == 9.0 || an.p.y == 19.0), "every point moved up"); + let ys: Vec = n.path_data().unwrap().subpaths.iter().flat_map(|sp| &sp.anchors).map(|an| an.p.y).collect(); + assert_eq!(ys.len(), 1000); + assert!(ys.iter().all(|&y| y == 9.0 || y == 19.0), "every point moved up"); } /// `selectedPathPoints` lists the direct-selected anchors of a path with several subpaths in the