style: apply whitespace formatting to motion tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+31
-31
No files matched your search
@@ -22,8 +22,8 @@ public sealed class PlaneOpsTests
|
||||
{
|
||||
var window = new List<float>();
|
||||
for (var dy = -radius; dy <= radius; dy++)
|
||||
for (var dx = -radius; dx <= radius; dx++)
|
||||
window.Add(source[int.Clamp(y + dy, 0, Height - 1) * Width + int.Clamp(x + dx, 0, Width - 1)]);
|
||||
for (var dx = -radius; dx <= radius; dx++)
|
||||
window.Add(source[int.Clamp(y + dy, 0, Height - 1) * Width + int.Clamp(x + dx, 0, Width - 1)]);
|
||||
window.Sort();
|
||||
Assert.Equal(window[window.Count / 2], output[y * Width + x]);
|
||||
}
|
||||
@@ -44,8 +44,8 @@ public sealed class PlaneOpsTests
|
||||
{
|
||||
double sum = 0;
|
||||
for (var dy = -radius; dy <= radius; dy++)
|
||||
for (var dx = -radius; dx <= radius; dx++)
|
||||
sum += source[int.Clamp(y + dy, 0, Height - 1) * Width + int.Clamp(x + dx, 0, Width - 1)];
|
||||
for (var dx = -radius; dx <= radius; dx++)
|
||||
sum += source[int.Clamp(y + dy, 0, Height - 1) * Width + int.Clamp(x + dx, 0, Width - 1)];
|
||||
Assert.Approximately(sum / ((2 * radius + 1) * (2 * radius + 1)), output[y * Width + x], 1e-5);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user