Skip to content

Commit c326085

Browse files
committed
Fixed unit tests to account for merged bugfix
This adjusts the tests following #3951
1 parent e2c2580 commit c326085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitTests/UnitTests.HighPerformance.Shared/Memory/Test_ReadOnlySpan2D{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public void Test_ReadOnlySpan2DT_TryGetSpan_From1DArray_2()
605605
{
606606
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
607607

608-
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(1, 0, 3, 2);
608+
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(1, 0, 2, 3);
609609

610610
bool success = span2d.TryGetSpan(out ReadOnlySpan<int> span);
611611

@@ -620,7 +620,7 @@ public void Test_ReadOnlySpan2DT_TryGetSpan_From1DArray_3()
620620
{
621621
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
622622

623-
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(0, 1, 2, 3);
623+
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(0, 1, 3, 2);
624624

625625
bool success = span2d.TryGetSpan(out ReadOnlySpan<int> span);
626626

0 commit comments

Comments
 (0)