From dd8d67564642e7979ba463fc6fb97587ec7f4dc2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 18:33:25 +0000 Subject: [PATCH] #10726: the committed-join test checks the commit went through and carried the path on Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GbuSKAS2k5248LGFEapMUR --- crates/ui-egui/src/pen_variants_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/pen_variants_tests.rs b/crates/ui-egui/src/pen_variants_tests.rs index 399d21e10d..c05e82d858 100644 --- a/crates/ui-egui/src/pen_variants_tests.rs +++ b/crates/ui-egui/src/pen_variants_tests.rs @@ -309,9 +309,10 @@ fn a_smooth_endpoint_carried_on_stays_smooth() { assert!(b[0].hypot(b[1]) > 1.0, "the outgoing handle bends into the new segment: {out_ctrl:?}"); assert!((a[0] * b[1] - a[1] * b[0]).abs() < 1e-6 && a[0] * b[0] + a[1] * b[1] > 0.0, "in line: {knots:?}"); // CodeRabbit on #10744: committed, the join is stored as a smooth knot. - crate::vector_ui::pen_commit(&mut app, false); + assert!(crate::vector_ui::pen_commit(&mut app, false), "the commit goes through"); let work = work_path(&app); assert_eq!(work.subpaths.len(), 1, "the same subpath, extended"); + assert_eq!(work.subpaths[0].knots.len(), 3, "carried on by the new anchor"); let join = &work.subpaths[0].knots[1]; assert!(join.smooth, "{join:?}"); let (a, b) = ([join.anchor.x - join.in_ctrl.x, join.anchor.y - join.in_ctrl.y], [join.out_ctrl.x - join.anchor.x, join.out_ctrl.y - join.anchor.y]);