From 072d87b8c95cc7427a7a242c85d6b17950c7a074 Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Fri, 8 Apr 2022 22:43:54 -0700 Subject: [PATCH] Re-adding some tests that were commented out now that IgnoreCase work is done (#67709) --- .../tests/FunctionalTests/RegexCultureTests.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/RegexCultureTests.cs b/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/RegexCultureTests.cs index ded3d230d7643..ff424c662aa33 100644 --- a/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/RegexCultureTests.cs +++ b/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/RegexCultureTests.cs @@ -106,7 +106,7 @@ public static IEnumerable TurkishI_Is_Differently_LowerUpperCased_In_T /// [Theory] [MemberData(nameof(TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture_TestData))] - [ActiveIssue("https://github.com/dotnet/runtime/issues/56407", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/37069", TestPlatforms.Android)] public void TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture(int length, RegexOptions options) { var turkish = new CultureInfo("tr-TR"); @@ -191,7 +191,6 @@ public async Task TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture_Non Assert.True(turkishRegex.IsMatch(input.ToUpper(turkish))); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/58958")] [Theory] [MemberData(nameof(RegexHelpers.AvailableEngines_MemberData), MemberType = typeof(RegexHelpers))] public async Task TurkishCulture_Handling_Of_IgnoreCase(RegexEngine engine) @@ -217,7 +216,6 @@ public static IEnumerable TurkishCulture_MatchesWordChar_MemberData() } [Theory] - [ActiveIssue("https://github.com/dotnet/runtime/issues/60568", TestPlatforms.Android)] [MemberData(nameof(TurkishCulture_MatchesWordChar_MemberData))] public async Task TurkishCulture_MatchesWordChar(RegexEngine engine, string input, RegexOptions options, string expectedResult) { @@ -314,8 +312,6 @@ public static IEnumerable Match_In_Different_Cultures_CriticalCases_Te public static IEnumerable Match_In_Different_Cultures_CriticalCases_TestData() => Match_In_Different_Cultures_CriticalCases_TestData_For(RegexEngine.Interpreter).Union(Match_In_Different_Cultures_CriticalCases_TestData_For(RegexEngine.Compiled)); - [ActiveIssue("https://github.com/dotnet/runtime/issues/60899", TestPlatforms.Browser)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/60697", TestPlatforms.iOS | TestPlatforms.tvOS)] [Theory] [MemberData(nameof(Match_In_Different_Cultures_TestData))] public async Task Match_In_Different_Cultures(string pattern, RegexOptions options, RegexEngine engine, CultureInfo culture, string input, string match_expected) @@ -325,8 +321,9 @@ public async Task Match_In_Different_Cultures(string pattern, RegexOptions optio Assert.Equal(match_expected, match.Value); } - [ActiveIssue("Incorrect treatment of IgnoreCase in Turkish and Invariant cultures, https://github.com/dotnet/runtime/issues/58956, https://github.com/dotnet/runtime/issues/58958 ")] [Theory] + // .NET Framework doesn't use the Regex Casing table for case equivalences. + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] [MemberData(nameof(Match_In_Different_Cultures_CriticalCases_TestData))] public async Task Match_In_Different_Cultures_CriticalCases(string pattern, RegexOptions options, RegexEngine engine, CultureInfo culture, string input, string match_expected) { @@ -335,8 +332,9 @@ public async Task Match_In_Different_Cultures_CriticalCases(string pattern, Rege Assert.Equal(match_expected, match.Value); } - [ActiveIssue("Incorrect result of match in complied mode in Invariant culture, https://github.com/dotnet/runtime/issues/58956")] [Fact] + // .NET Framework doesn't use the Regex Casing table for case equivalences. + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] public void Match_InvariantCulture_None_vs_Compiled() { string pattern = "(?i:iI+)"; @@ -353,7 +351,6 @@ public void Match_InvariantCulture_None_vs_Compiled() /// This test is to make sure that the generated IgnoreCaseRelation table for NonBacktracking does not need to be updated. /// It would need to be updated/regenerated if this test fails. /// - [ActiveIssue("https://github.com/dotnet/runtime/issues/60753")] [OuterLoop("May take several seconds due to large number of cultures tested")] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] [Fact] @@ -415,7 +412,6 @@ public void TestIgnoreCaseRelation() /// /// This test currently only works correctly in NonBacktracking mode. /// - [ActiveIssue("https://github.com/dotnet/runtime/issues/60753")] [OuterLoop("May take tens of seconds")] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Doesn't support NonBacktracking")] [Theory]