acdream/tests/AcDream.Core.Tests/Terrain
Erik 4ed79207a6 fix(N.5b T7): tighten conformance sample upper bound to 191.975f
Code review identified a latent false-positive flake risk: physics
path clamps fx = localX/24 to (CellsPerSide - 0.001f) = 7.999, which
corresponds to localX <= 191.976. With samples up to 191.999f,
physics computes Z at the clamped position while the mesh sampler
uses the actual position — a difference of up to 23 mm at the upper
edge, which on a steep slope would falsely trip the 1 mm sentinel.

Tighten upper bound to 191.975f (strictly below the clamp boundary)
so both oracles compute Z at the same (cellX, tx). Also restored the
"worst-case from SplitFormulaDivergenceTest" inline comment for
landblock 0x4D96 per code review suggestion #3.

Test still passes: 10/10 landblocks, 1000 samples, max |delta|
= 0.0153 mm (previously 0.0305 mm — confirms the prior worst-case
was indeed at the boundary).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 08:59:01 +02:00
..
ClientConformanceTests.cs fix(terrain): align per-cell triangle geometry with ACE's ConstructPolygons convention 2026-04-21 13:20:59 +02:00
ClientReference.cs test: port ACME ClientReference + conformance tests 2026-04-12 22:45:20 +02:00
LandblockMeshTests.cs feat(core+app): per-cell terrain texture blending (Phase 3c.4) 2026-04-11 14:02:15 +02:00
SplitFormulaDivergenceTest.cs test(N.5b): quantify WB vs retail terrain split formula divergence 2026-05-09 08:22:50 +02:00
TerrainBlendingTests.cs feat(core): terrain surface recipe + cell data packing (Phase 3c.3) 2026-04-11 13:53:32 +02:00
TerrainModernConformanceTests.cs fix(N.5b T7): tighten conformance sample upper bound to 191.975f 2026-05-09 08:59:01 +02:00
TerrainSlotAllocatorTests.cs phase(N.5b) Task 2: TerrainSlotAllocator + tests 2026-05-09 08:44:51 +02:00