mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
whitespace/formatting
This commit is contained in:
parent
4ce3f5b29d
commit
d644d2ba5c
1 changed files with 9 additions and 9 deletions
|
@ -111,7 +111,7 @@ namespace Ryujinx.Tests.Graphics
|
|||
{
|
||||
var tc = byteDifferences.Count(x => Math.Abs(x.delta) >= threshold);
|
||||
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}.");
|
||||
}
|
||||
|
||||
|
@ -163,11 +163,11 @@ namespace Ryujinx.Tests.Graphics
|
|||
Debug.WriteLine($"Pixel-wise comparison: {wordUnchangedPercent * 100:F4} ({wordUnchangedCount}/{wordDifferences.Length})");
|
||||
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 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));
|
||||
|
|
Loading…
Reference in a new issue