whitespace/formatting

This commit is contained in:
Michael Durrant 2023-07-31 13:55:14 -06:00
parent 4ce3f5b29d
commit d644d2ba5c

View file

@ -111,7 +111,7 @@ namespace Ryujinx.Tests.Graphics
{ {
var tc = byteDifferences.Count(x => Math.Abs(x.delta) >= threshold); var tc = byteDifferences.Count(x => Math.Abs(x.delta) >= threshold);
var tcp = ((float)tc / byteDifferences.Count); var tcp = ((float)tc / byteDifferences.Count);
if (tc >0) if (tc > 0)
TestContext.Out.WriteLine($"{tcp * 100:F4}% ({tc}/{byteDifferences.Count}) are different by at least {threshold}."); TestContext.Out.WriteLine($"{tcp * 100:F4}% ({tc}/{byteDifferences.Count}) are different by at least {threshold}.");
} }
@ -163,11 +163,11 @@ namespace Ryujinx.Tests.Graphics
Debug.WriteLine($"Pixel-wise comparison: {wordUnchangedPercent * 100:F4} ({wordUnchangedCount}/{wordDifferences.Length})"); Debug.WriteLine($"Pixel-wise comparison: {wordUnchangedPercent * 100:F4} ({wordUnchangedCount}/{wordDifferences.Length})");
Debug.WriteLine($"Byte-wise comparison: {matchPercent * 100:F4} ({matchCount}/{byteDifferences.Count}) were same."); Debug.WriteLine($"Byte-wise comparison: {matchPercent * 100:F4} ({matchCount}/{byteDifferences.Count}) were same.");
for (var threshold = 1; threshold< 16; threshold++) for (var threshold = 1; threshold < 16; threshold++)
{ {
var tc = byteDifferences.Count(x => Math.Abs(x.delta) >= threshold); var tc = byteDifferences.Count(x => Math.Abs(x.delta) >= threshold);
var tcp = ((float)tc / byteDifferences.Count); var tcp = ((float)tc / byteDifferences.Count);
Debug.WriteLine($"{tcp*100:F4}% ({tc}/{byteDifferences.Count}) are different by at least {threshold}."); Debug.WriteLine($"{tcp * 100:F4}% ({tc}/{byteDifferences.Count}) are different by at least {threshold}.");
} }
Assert.IsTrue(byteDifferences.All(x => Math.Abs(x.delta) < 2)); Assert.IsTrue(byteDifferences.All(x => Math.Abs(x.delta) < 2));