mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-09 12:03:17 +00:00
Geom: test that stray end handles leave a line without area
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c05afc6b44
commit
5e8571d11e
1 file changed
+5
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user