CultLib/tests/GameCult.Geometry.Tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 6a4b0ed21f Add tests for surface-nets F1/F3/F4/F6/F7 mutation findings
- Fixed An_extremely_small_edge_delta_falls_back_to_the_edge_midpoint (renamed
  A_tiny_but_normal_edge_delta_...): it pinned the wrong value (1/6) for the
  fallback that F3's production commit deleted; now asserts the exact
  interpolated value, hand-derived in double precision independently of
  Interpolate. Added a genuinely subnormal-delta sibling test.

- Added two more vertex-placement fixtures (crossing counts 4 and 6) to kill
  the sum/count -> sum/3 mutant, each with a hand-derived expected mean.
  Counts of 1 and 2 from the finding are not used: a single cell's 12 edges
  form the cube graph Q3 (3-regular, 8 vertices), whose edge-cut size for any
  corner sign pattern is never 1 or 2 for any nonzero cut (minimum nonzero
  cut is 3, already covered by the existing symmetric/unequal fixtures) -
  see the fork note in this cut's report.

- Added three corner-order pinning tests (one per axis), each asserting the
  exact welded vertex at each of Quads[0..3] for a chosen edge against a
  hand-computed position, including the axis-1 v1/v3 swap that F4's fixed
  OrientationSign now performs. These kill the axis-0-mirrored, c0/c2-swapped
  and equivalent per-axis corner-order mutants.

- Added four degenerate-quad orientation tests (sample exactly at iso,
  large-origin/tiny-cellSize sphere, octahedron at iso, tiny-tolerance
  sphere) asserting every shared undirected edge is traversed in opposite
  directions (net zero), via a new AssertEdgeDirectionsBalance helper that
  also covers the 4-use case. Restricted the existing
  Every_quad_winds_outward_from_inside_to_outside test's geometric check to
  non-degenerate (non-zero cross product) quads, per spec.

- Added Grid_edge_inequality_is_the_negation_of_equality (F6: != is compiler-
  mandated alongside ==, and needed its own direct test) and
  A_non_finite_sample_is_rejected (F7: NaN and +-Infinity samples).

All 38 SurfaceNetsTests pass; the 7 pre-existing GeometryDocumentTests
failures from CultLib commit e420410 are untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 19:30:14 +02:00
..
Fixtures/vg-csg-ragnarok Verify Rust geometry payload interop 2026-05-30 00:04:05 +01:00
GameCult.Geometry.Tests.csproj Verify Rust geometry payload interop 2026-05-30 00:04:05 +01:00
GeometryDocumentTests.cs Make generated and reflective document members one rule 2026-09-13 22:00:16 +02:00
IsoSurfaceTests.cs Make CultMath normalize follow dxc and release 0.2.2 2026-09-14 18:04:04 +02:00
QuadNormalsTests.cs Kill mutation survivors: degenerate fixtures, missing axis and edge tests 2026-09-25 18:38:15 +02:00
stryker-config.json Test surface nets naming, orientation, welding, and normals; scope Stryker to it 2026-09-25 18:06:54 +02:00
SurfaceNetsTests.cs Add tests for surface-nets F1/F3/F4/F6/F7 mutation findings 2026-09-25 19:30:14 +02:00