From 5e8571d11e9e169db737bb8d29bbe25a40b6575b Mon Sep 17 00:00:00 2001 From: KnottyDyes <47539659+KnottyDyes@users.noreply.github.com> Date: Tue, 3 Nov 2026 18:58:37 -0700 Subject: [PATCH] Geom: test that stray end handles leave a line without area Co-Authored-By: Claude Opus 5.5 --- crates/geom/src/path.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/geom/src/path.rs b/crates/geom/src/path.rs index 2f17c49fa..175e210b7 100644 --- a/crates/geom/src/path.rs +++ b/crates/geom/src/path.rs @@ -469,6 +469,11 @@ mod tests { assert!(PathData::new(vec![line.clone(), square]).encloses_area()); assert!(!PathData::new(vec![line]).encloses_area()); assert!(!PathData::default().encloses_area()); + // Handles left on the open ends don't bend the closing segment. + let mut stray = SubPath::polyline(&pts(&[(0.0, 0.0), (100.0, 0.0)]), false); + stray.anchors[0].h_in = Point::new(0.0, 40.0); + stray.anchors[1].h_out = Point::new(100.0, 40.0); + assert!(!PathData::single(stray).encloses_area()); } #[test]