From 05abcec6c23a343493a7e8d179b4d6d3be070271 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 14 Oct 2026 22:49:22 -0400 Subject: [PATCH] engine: the crank-arm conformity test checks all-hex20, not a platform-dependent count The tet-free sweep gives 7274 hex20 on macOS and 7334 on Linux (#115), so the exact count failed develop's CI after #272. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo --- crates/engine/src/sample.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/sample.rs b/crates/engine/src/sample.rs index b6c5004..2537047 100644 --- a/crates/engine/src/sample.rs +++ b/crates/engine/src/sample.rs @@ -830,7 +830,9 @@ mod tests { fn the_crank_arm_hex20_mesh_is_conforming() { let s = open("crank-arm"); let c = conformity(&s); - assert_eq!(s.model.elements().len(), 7274); + // The count differs between platforms (#115: 7274 on macOS, 7334 on Linux), so check + // that the mesh is all hex20 rather than its size. + assert!(s.model.elements().values().all(|e| e.kind == fieldcraft_model::ElementKind::Hex20)); assert!(c.is_conforming(), "{:?} {:?} {:?}", c.open_edges.first(), c.coincident.first(), c.midside_mismatches.first()); }