From 0257f53bb97b36d46a981b8df3987d932949b71c Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Fri, 6 Nov 2026 21:55:50 -0500 Subject: [PATCH] Test: a connector saved with its path starts 4 pt outside its sides, as main's connectors do Co-Authored-By: Claude Fable 5.1 --- crates/format/src/fig/tail_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/format/src/fig/tail_tests.rs b/crates/format/src/fig/tail_tests.rs index 1255f296d..54ef905e5 100644 --- a/crates/format/src/fig/tail_tests.rs +++ b/crates/format/src/fig/tail_tests.rs @@ -892,7 +892,8 @@ fn an_elbow_connector_saved_with_its_path_keeps_it() { let world = doc.world_transform(named(&doc, "Saved").id); let line: Vec<_> = network_of(&doc, "Saved").vertices.iter().map(|v| world * figcraft_doc::geom::Point::new(v.x, v.y)).map(|p| (p.x, p.y)).collect(); - assert_eq!(line, [(50.0, 700.0), (50.0, 740.0), (200.0, 740.0), (200.0, 850.0), (300.0, 850.0)]); + // Each end starts `END_GAP` (4) outside its side's border. + assert_eq!(line, [(50.0, 704.0), (50.0, 740.0), (200.0, 740.0), (200.0, 850.0), (296.0, 850.0)]); // The fixture's own Link, saved without a path, is routed here: the note counts it alone. let routed: Vec<_> = warnings.iter().filter(|w| w.contains("FigCraft's own routing")).collect(); assert_eq!(routed.len(), 1, "{warnings:?}");