-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Milestone
Description
I believe these test failures are due to differences in Android's handling of the th-TH culture, but we should validate fully.
1.) DateTimeOffsetTests.ToString_MatchesExpected & TryFormat_MatchesExpected
Several failures surrounding:
yield return new object[] { DateTimeOffset.MaxValue, "yy", thTH, "42" }; |
runtime/src/libraries/System.Runtime/tests/System/DateTimeOffsetTests.cs
Lines 1251 to 1252 in 57bfe47
if (PlatformDetection.IsNotInvariantGlobalization) | |
yield return new object[] { DateTimeOffset.MaxValue, new string('y', i), thTH, 10542.ToString("D" + i) }; |
Example failures:
Assert.Equal() Failure
↓ (pos 0)
Expected: 42
Actual: 99
Expected: 0010542
Actual: 0009999
2.) DateTimeOffsetTests.ToString_Invoke_ReturnsExpected & TryFormat_MatchesExpected
Same problem as #1 with test failures surrounding:
yield return new object[] { DateTime.MaxValue, "yy", thTH, "42" }; |
yield return new object[] { DateTime.MaxValue, new string('y', i), thTH, 10542.ToString("D" + i) }; |