From f81c4b1575850d769ff5ee7176de876cecdaefd9 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Sat, 31 Oct 2026 08:58:21 -0400 Subject: [PATCH] Chamfer history test: the chamfer after each box cut is exactly one face on the painted block too Co-Authored-By: Claude Opus 5.5 --- crates/kernel/src/modify_history_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/kernel/src/modify_history_tests.rs b/crates/kernel/src/modify_history_tests.rs index 45d2d36f2..3cb4910b8 100644 --- a/crates/kernel/src/modify_history_tests.rs +++ b/crates/kernel/src/modify_history_tests.rs @@ -511,9 +511,9 @@ fn chamfer_after_box_cuts() { for (name, cut, tool) in box_cuts_of(&b) { let r = crate::chamfer(&cut, &[at], 2.0).unwrap(); let h = verified(&r, &cut, reach(2.0 * 1.5)); - // On the painted block the chamfer face keeps the boundaries the cut left. - let faces = with(h, &[edge(edge_at(&cut, at))]).len(); - assert!(if painted { faces >= 1 } else { faces == 1 }, "{name} (painted: {painted}): {h:?}"); + // The picked edge is one edge of the cut body on either block (its round is one face, + // `fillet_after_box_cuts`), so its chamfer is one face too. + assert_eq!(with(h, &[edge(edge_at(&cut, at))]).len(), 1, "{name} (painted: {painted}): {h:?}"); let mut through = h.clone(); through.substitute(0, cut.history().unwrap()).unwrap(); through.check(&r, &[&b, &tool]).unwrap();