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:
parent
dd896528cc
commit
86323768e0
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue