mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-10 18:55:14 +00:00
convert: flat parity pins the bodies that differ, not the corpus size (#13999)
The corpus grows as cases are added, so the merged kernel -> main sync saw 1,337 bodies instead of 1,332 (all five new ones identical) and failed. Every differing body is already pinned by name; the totals now check that the rest are identical or within rounding. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-3
@@ -582,10 +582,12 @@ fn parity(stride: usize) {
|
||||
missing.is_empty(),
|
||||
"pinned bodies that no longer differ: {missing:#?}"
|
||||
);
|
||||
// The corpus grows as cases are added, so the totals aren't pinned: every body that
|
||||
// differs is pinned above, and the rest must be identical or within rounding.
|
||||
assert_eq!(
|
||||
(t.bodies, t.identical, t.rounding_only),
|
||||
(1332, 1256, 36),
|
||||
"bodies, identical, within rounding"
|
||||
(t.bodies - t.identical - t.rounding_only, t.rounding_only),
|
||||
(pinned.len(), 36),
|
||||
"bodies that differ, bodies within rounding"
|
||||
);
|
||||
// the largest rounding difference, relative (#3137: 4.885e-16)
|
||||
assert!(t.rounding_largest <= 4.9e-16, "{:e}", t.rounding_largest);
|
||||
|
||||
Reference in New Issue
Block a user