PaintModeTests: a cloud-thinned echo reads as nothing within the cloud's own fade, not exactly zero

The cloud fades linearly over its lifetime, so an opaque cloud's two legs read 3e-5 a few ticks in. The zero cases compare within a tolerance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 15:23:28 +02:00
commit 86323768e0

View file

@ -506,13 +506,13 @@ public sealed class PaintModeTests : IDisposable
Assert.Equal(1, painted);
if (leg == 0)
{
Assert.Equal(0f, Track(a, t));
Assert.Equal(0f, Track(c, t));
Near(0f, Track(a, t));
Near(0f, Track(c, t));
}
else if (leg == 1)
{
Near(.1f, Track(a, t));
Assert.Equal(0f, Track(c, t));
Near(0f, Track(c, t));
}
else
{