Fix bogus assert in ArraySortHelper (#6018)

Fixes #6016.
Resolves #6015.
This commit is contained in:
Michal Strehovský 2018-06-26 16:17:53 +02:00 коммит произвёл Jan Kotas
Родитель 635cf21aca
Коммит 5ddf79df02
2 изменённых файлов: 3 добавлений и 15 удалений

Просмотреть файл

@ -654,10 +654,10 @@ namespace System.Collections.Generic
private static void SwapIfGreaterWithItems(TKey[] keys, TValue[] values, IComparer<TKey> comparer, int a, int b)
{
Debug.Assert(keys != null);
Debug.Assert(values != null && values.Length >= keys.Length);
Debug.Assert(values != null);
Debug.Assert(comparer != null);
Debug.Assert(0 <= a && a < keys.Length);
Debug.Assert(0 <= b && b < keys.Length);
Debug.Assert(0 <= a && a < keys.Length && a < values.Length);
Debug.Assert(0 <= b && b < keys.Length && b < values.Length);
if (a != b)
{

Просмотреть файл

@ -775,18 +775,6 @@
"namespaces": null,
"classes": null,
"methods": [
{
"name": "System.Tests.TupleTests.CompareTo",
"reason": "https://github.com/dotnet/corert/issues/6015"
},
{
"name": "System.Tests.TupleTests.Equals_GetHashCode",
"reason": "https://github.com/dotnet/corert/issues/6015"
},
{
"name": "System.Tests.ArrayTests.Sort_Array_Array_NonGeneric",
"reason": "https://github.com/dotnet/corert/issues/6016"
},
{
"name": "System.Reflection.Tests.MethodInfoTests.TestEquality2",
"reason": "Xunit.Sdk.EqualException"