Repository navigation
Closed
Milestone
Description
Test collection for System.Text.RegularExpressions.Tests.RegexGroupTests
System.Text.RegularExpressions.Tests.RegexGroupTests.Groups(cultureName: \"tr-TR\", pattern: \"ı\", input: \"I\", options: IgnoreCase, expectedGroups: [\"I\"])
Assert.True() Failure\nExpected: True\nActual: False
System.Text.RegularExpressions.Tests.RegexGroupTests.Groups(cultureName: \"az-Latn-AZ\", pattern: \"ı\", input: \"I\", options: IgnoreCase, expectedGroups: [\"I\"])
Assert.True() Failure\nExpected: True\nActual: False
Test collection for System.Text.RegularExpressions.Tests.RegexCultureTests
System.Text.RegularExpressions.Tests.RegexCultureTests.TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture(length: 2)
Assert.All() Failure: 2 out of 2 items in the collection did not pass.\n[1]: Item: Iıİi\n Xunit.Sdk.FalseException: Assert.False() Failure\n Expected: False\n Actual: True\n at Xunit.Assert.False(Nullable`1 condition, String userMessage) in xunit.assert.dll:token 0x600000d+0x19\n at Xunit.Assert.False(Boolean condition) in xunit.assert.dll:token 0x600000a+0x6\n at System.Text.RegularExpressions.Tests.RegexCultureTests.<>c__DisplayClass2_0.<TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture>b__1(Regex rex) in /Users/mdhwang/runtime_droid/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs:line 90\n at Xunit.Assert.All[Regex](IEnumerable`1 collection, Action`1 action) in xunit.assert.dll:token 0x6000012+0x28\n[0]: Item: Iıİi\n Xunit.Sdk.FalseException: Assert.False() Failure\n Expected: False\n Actual: True\n at Xunit.Assert.False(Nullable`1 condition, String userMessage) in xunit.assert.dll:token 0x600000d+0x19\n at Xunit.Assert.False(Boolean condition) in xunit.assert.dll:token 0x600000a+0x6\n at System.Text.RegularExpressions.Tests.RegexCultureTests.<>c__DisplayClass2_0.<TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture>b__1(Regex rex) in /Users/mdhwang/runtime_droid/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs:line 90\n at Xunit.Assert.All[Regex](IEnumerable`1 collection, Action`1 action) in xunit.assert.dll:token 0x6000012+0x28
System.Text.RegularExpressions.Tests.RegexCultureTests.TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture(length: 256)
Assert.All() Failure: 2 out of 2 items in the collection did not pass.\n[1]: Item: IıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİi\n Xunit.Sdk.FalseException: Assert.False() Failure\n Expected: False\n Actual: True\n at Xunit.Assert.False(Nullable`1 condition, String userMessage) in xunit.assert.dll:token 0x600000d+0x19\n at Xunit.Assert.False(Boolean condition) in xunit.assert.dll:token 0x600000a+0x6\n at System.Text.RegularExpressions.Tests.RegexCultureTests.<>c__DisplayClass2_0.<TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture>b__1(Regex rex) in /Users/mdhwang/runtime_droid/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs:line 90\n at Xunit.Assert.All[Regex](IEnumerable`1 collection, Action`1 action) in xunit.assert.dll:token 0x6000012+0x28\n[0]: Item: IıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİiIıİi\n Xunit.Sdk.FalseException: Assert.False() Failure\n Expected: False\n Actual: True\n at Xunit.Assert.False(Nullable`1 condition, String userMessage) in xunit.assert.dll:token 0x600000d+0x19\n at Xunit.Assert.False(Boolean condition) in xunit.assert.dll:token 0x600000a+0x6\n at System.Text.RegularExpressions.Tests.RegexCultureTests.<>c__DisplayClass2_0.<TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture>b__1(Regex rex) in /Users/mdhwang/runtime_droid/src/libraries/System.Text.RegularExpressions/tests/RegexCultureTests.cs:line 90\n at Xunit.Assert.All[Regex](IEnumerable`1 collection, Action`1 action) in xunit.assert.dll:token 0x6000012+0x28
Branched out from #36848
It looks like the Turkish culture has had some problems with Globalization tests, specifically around the casing of the letters. These seem to be corner cases and it doesn't seem clear exactly what should be done or if the changes should come from the libraries.
For now, moving the tests System.Text.RegularExpressions.Tests.RegexCultureTests.TurkishI_Is_Differently_LowerUpperCased_In_Turkish_Culture and System.Text.RegularExpressions.Tests.RegexGroupTests.Groups to have this as their ActiveIssue instead, and targeting the future milestone.
Activity
steveisok commentedon Jul 30, 2021
Leaving this here as a reminder... We should investigate why tr-TR is problematic on Android and see if we can do anything about it. It's either our test assumptions or the data on the device.
danmoseley commentedon Aug 6, 2021
duping against #37069 as the fix would be the same fix in Android.