From f9347aca70d5b2b44126864df1769ef9b1400b2a Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Thu, 29 Oct 2026 01:19:25 -0400 Subject: [PATCH] Tests: the mirrored union's volume held to the two integrals' 1e-8 accuracy measure now integrates to SMLib's finest relative accuracy, 1e-8 (da57f37e5, cherry-picked from the engine-commands branch), not 1e-4: the mirrored bracket's union and twice its half, each an integral good to 1e-8, agree to 2e-8. (The test stops earlier on this base, at the mirrored operand SMLib's check refuses: the mirror-regressions agent's cause.) Co-Authored-By: Claude Opus 5.5 --- crates/kernel/src/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/kernel/src/tests.rs b/crates/kernel/src/tests.rs index 850bd87c5..5d8dd8479 100644 --- a/crates/kernel/src/tests.rs +++ b/crates/kernel/src/tests.rs @@ -1603,9 +1603,9 @@ fn overlapping_holes_and_mirror_joins() { let both = boolean(&half, &other, BoolOp::Union).unwrap().unwrap(); let v = measure(&half).unwrap().volume; let mb = measure(&both).unwrap(); - // Both volumes are SMLib's integrals, each good to its relative accuracy (1e-4, - // measure::ACCURACY); a lost round or wall would be off by percent. - assert!(rel(mb.volume, 2.0 * v) < 1e-4, "{} vs {}", mb.volume, 2.0 * v); + // Both volumes are SMLib's integrals, each good to its relative accuracy (1e-8, + // measure::ACCURACY): they agree to the two together. + assert!(rel(mb.volume, 2.0 * v) < 2e-8, "{} vs {}", mb.volume, 2.0 * v); // One body: the shared face is gone and the faces either side of it merged. assert_eq!(mb.merged.faces, 10, "{:?}", mb.merged); // Two equal cylinders on one axis, overlapping: one longer cylinder.