Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 551ba2e

Browse files
committed
disable new test for hybrid glob on browser
1 parent 45d706f commit 551ba2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.IndexOf.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ public static IEnumerable<object[]> IndexOf_TestData()
2222
yield return new object[] { s_germanCompare, "foo", "", 0, 3, CompareOptions.None, 0, 0 };
2323
yield return new object[] { s_germanCompare, "foo", "", 2, 1, CompareOptions.None, 2, 0 };
2424
yield return new object[] { s_germanCompare, "", "", 0, 0, CompareOptions.None, 0, 0 };
25-
yield return new object[] { s_germanCompare, "", "foo", 0, 0, CompareOptions.None, -1, 0 };
25+
if (!PlatformDetection.IsHybridGlobalizationOnBrowser)
26+
{
27+
yield return new object[] { s_germanCompare, "", "foo", 0, 0, CompareOptions.None, -1, 0 };
28+
}
2629

2730
// OrdinalIgnoreCase
2831
yield return new object[] { s_invariantCompare, "Hello", "l", 0, 5, CompareOptions.OrdinalIgnoreCase, 2, 1 };

0 commit comments

Comments
 (0)