test: prove the atomic profile on a genuinely split edge (#233 r1 M1,M2)

Issue: #233
User-Visible: no
This commit is contained in:
Matysh
2026-08-22 10:13:50 +03:00
parent bff47f522b
commit 81f38689bb
2 changed files with 44 additions and 12 deletions
+14
View File
@@ -108,6 +108,20 @@ export const MUTANTS = [
replace: ' const span = centre;',
}],
},
{
id: 'inner-span-ignores-neighbour-thickness',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
+ '&& node --test --test-name-pattern="innerEdgeSpan measures between wall faces" '
+ 'test/wall-thickness.test.mjs',
because: 'an edge is cut by the inner faces of its NEIGHBOURS, not by its own thickness: a '
+ 'thin side between two thick walls loses 2x15, not 2x7.5, and reading own thickness at '
+ 'both ends gives a number no tape measure confirms (#233 AC2)',
patches: [{
file: 'src/wall-thickness.ts',
find: ' const o = Math.max(0, Number(offsets[edge]) || 0);',
replace: ' const o = own;',
}],
},
{
id: 'inner-span-shortens-a-passage',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '