Visibility 4a: ping-light expectations in paint-mode test; ping test needs no lit-hull assertion
Builds; test run follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d8b7f33d90
commit
dfa85be635
2 changed files with 3 additions and 4 deletions
|
|
@ -387,7 +387,6 @@ public sealed class ContactRevealTests : IDisposable
|
|||
var (controlLight, controlTrack) = RunPinger(ping: false);
|
||||
|
||||
Assert.Equal(controlLight, pingedLight);
|
||||
Assert.True(controlLight.Max() > 0f, "fixture: the pinger's hull is lit");
|
||||
Assert.Equal(controlTrack, pingedTrack, 6);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -291,10 +291,10 @@ public sealed class PaintModeTests : IDisposable
|
|||
Assert.Equal(2 * .3f, Track(c, t), 4); // 5 x 3 x .0002 x 100, its own ping and A's
|
||||
Assert.Equal(2 * .1f, Track(a, t), 4); // 5 x 2 x .0001 x 100, its own ping and C's
|
||||
// A pinging ship is not a subject of its own ping, wherever its wavefront starts: A sees C once (A's own
|
||||
// sweep), at C's light of 10 (5 reflected, 5 emitted by the ping) and 100 x sqrt 2 away; and C sees A once.
|
||||
// sweep), at C's light of 5 (reflected; a ping adds none) and 100 x sqrt 2 away; and C sees A once.
|
||||
var apart = length(float2(100, 100));
|
||||
Assert.Equal(10 * 2 * .0001f * apart, Track(a, c), 4);
|
||||
Assert.Equal(10 * 3 * .0002f * apart, Track(c, a), 4);
|
||||
Assert.Equal(5 * 2 * .0001f * apart, Track(a, c), 4);
|
||||
Assert.Equal(5 * 3 * .0002f * apart, Track(c, a), 4);
|
||||
}
|
||||
|
||||
// Allegiance needs a faction: two factionless ships are not allies, so one hears nothing of the other's ping.
|
||||
|
|
|
|||
Loading…
Reference in a new issue