misc: chore: Use collection expressions

This commit is contained in:
KeatonTheBot
2025-03-06 20:46:29 -06:00
parent 4d5757417e
commit e2973a875a
236 changed files with 9843 additions and 7561 deletions
@@ -208,7 +208,7 @@ namespace Ryujinx.Tests.Memory
// Query some large regions to prep the subdivision of the tracking region.
int[] regionSizes = new int[] { 6, 4, 3, 2, 6, 1 };
int[] regionSizes = [6, 4, 3, 2, 6, 1];
ulong address = 0;
for (int i = 0; i < regionSizes.Length; i++)
@@ -333,24 +333,24 @@ namespace Ryujinx.Tests.Memory
// Finally, create a granular handle that inherits all these handles.
IEnumerable<IRegionHandle>[] handleGroups = new IEnumerable<IRegionHandle>[]
{
IEnumerable<IRegionHandle>[] handleGroups =
[
granular.GetHandles(),
singlePages,
doublePages,
};
doublePages
];
MultiRegionHandle combined = _tracking.BeginGranularTracking(0, PageSize * 18, handleGroups.SelectMany((handles) => handles), PageSize, 0);
bool[] expectedDirty = new bool[]
{
bool[] expectedDirty =
[
true, true, true, // Gap.
false, true, false, // Multi-region.
true, true, // Gap.
false, true, false, // Individual handles.
false, false, true, true, false, false, // Double size handles.
true, // Gap.
};
true // Gap.
];
for (int i = 0; i < 18; i++)
{