tools/mutation.sh: temp-copy mutations a-d (d1/d2 = shared-vertex arms); logs results/mutation.log, nimble-test.log
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,277 @@
|
||||
## control: unmutated copy (must pass)
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[OK] shared vertex: both arms required (mutation d1/d2)
|
||||
[OK] '<' apex: ray through the shared tip must not leak
|
||||
[OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
# test exit=0; expected tests failed: 0
|
||||
|
||||
control: exit=0 expected_failed=0 ok
|
||||
## a: remove the +-RayEps rays
|
||||
# diff server/geometry.nim -> mutated copy:
|
||||
# 59,60d58
|
||||
# < angles.add ang - RayEps
|
||||
# < angles.add ang + RayEps
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[OK] shared vertex: both arms required (mutation d1/d2)
|
||||
[OK] '<' apex: ray through the shared tip must not leak
|
||||
[OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
Error: execution of an external program failed: '/tmp/tmp.RdwDCq2CQL/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
|
||||
a: exit=1 expected_failed=1 ok
|
||||
## b: upper segment end exclusive
|
||||
# diff server/geometry.nim -> mutated copy:
|
||||
# 36c36
|
||||
# < if t > Eps and u >= -Eps and u <= 1 + Eps: t else: Inf
|
||||
# ---
|
||||
# > if t > Eps and u >= -Eps and u < 1 - Eps: t else: Inf
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[OK] shared vertex: both arms required (mutation d1/d2)
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
Error: execution of an external program failed: '/tmp/tmp.RdwDCq2CQL/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
|
||||
b: exit=1 expected_failed=2 ok
|
||||
## c: lower segment end exclusive
|
||||
# diff server/geometry.nim -> mutated copy:
|
||||
# 36c36
|
||||
# < if t > Eps and u >= -Eps and u <= 1 + Eps: t else: Inf
|
||||
# ---
|
||||
# > if t > Eps and u > Eps and u <= 1 + Eps: t else: Inf
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[OK] shared vertex: both arms required (mutation d1/d2)
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
Error: execution of an external program failed: '/tmp/tmp.RdwDCq2CQL/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
|
||||
c: exit=1 expected_failed=2 ok
|
||||
## d1: shared-vertex fixture without arm 1
|
||||
# diff tests/tgeometry.nim -> mutated copy:
|
||||
# 48c48
|
||||
# < let w = @[arm1, arm2] # SHARED-VERTEX
|
||||
# ---
|
||||
# > let w = @[arm2]
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
[OK] '<' apex: ray through the shared tip must not leak
|
||||
[OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
Error: execution of an external program failed: '/tmp/tmp.RdwDCq2CQL/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
d1: exit=1 expected_failed=1 ok
|
||||
## d2: shared-vertex fixture without arm 2
|
||||
# diff tests/tgeometry.nim -> mutated copy:
|
||||
# 48c48
|
||||
# < let w = @[arm1, arm2] # SHARED-VERTEX
|
||||
# ---
|
||||
# > let w = @[arm1]
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
[OK] '<' apex: ray through the shared tip must not leak
|
||||
[OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
[OK] collinear walls with a gap let light through
|
||||
[OK] T-junction: no leak and correct shadow
|
||||
[OK] pillar mid-room casts a shadow, sides visible
|
||||
[OK] closed door blocks, open door passes
|
||||
[OK] token exactly at wall endpoint
|
||||
[OK] token at endpoint of free-standing wall sees along it
|
||||
[OK] long thin corridor
|
||||
[OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
[OK] radius clips
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
[OK] diagonal squeeze through corner vertex of L
|
||||
[OK] moving along a collinear wall is blocked
|
||||
[OK] doors
|
||||
[OK] zero-length move
|
||||
[OK] square polygon
|
||||
[OK] tiny polygon inside one cell
|
||||
[OK] polygon spanning a cell with no vertex in it
|
||||
[OK] big polygon includes fully covered interior cells
|
||||
[OK] every token in seed sees itself and is not walled in
|
||||
[OK] near pillar: circle overlapping blocked, clear ok
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
[OK] door closed on a token: Q14 undecided, DESIGN 5.4 vs 12 H2 conflict
|
||||
[OK] KNOWN LIMITATION: token exactly on a wall cannot move off it
|
||||
Error: execution of an external program failed: '/tmp/tmp.RdwDCq2CQL/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
d2: exit=1 expected_failed=1 ok
|
||||
exit=0
|
||||
Reference in New Issue
Block a user