-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[apple][HybridGlobalization] Enable more System.Globalization.Tests for Apple Hybrid-Globalization #100240
Comments
Tagging subscribers to this area: @dotnet/area-system-globalization |
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos |
I wonder why are these test cases runtime/src/libraries/System.Runtime/tests/System.Globalization.Tests/DateTimeFormatInfo/DateTimeFormatInfoLongDatePattern.cs enabled for only |
They are not specific to hybrid but testing ICU on this is not necessary, in ICU if we loaded the data and it's available for one specific locale, then we can assume all the remaining locales are correct. Edit: |
For Apple there should not be broken locales (Apple also uses ICU libs). IMHO running same suite of tests that we were validating ICU should be enough for Apple hybrid mode. |
I think that for Apple, we won't have a problem that locale is missing or is broken. However, for ICU Globalization we have to normalize the retrieved values from ICU using runtime/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Icu.cs Line 261 in 825bc44
and I believe the same might be needed for Apple hybrid mode (or we should verify that it is not needed at least). |
@tarekgh, we are trying to understand what was the motivation for skipping some types of tests for globalization methods when developing the libs. E.g. Line 11 in 71a7d88
but skipping the rest and how did we choose which ones are worth testing? |
@ilonatommy we are trying to make the tests stable. The globalization data is changing almost every release of ICU/Windows. If we test all cultures that will make the test unstable. So, we choose subset of the cultures that are stable enough to test against. |
Completed in #102464 |
There are a lot of tests in
System.Globalization.Tests
that are only enabled for Hybrid-Globalization on Browser. For example:runtime/src/libraries/System.Runtime/tests/System.Globalization.Tests/DateTimeFormatInfo/DateTimeFormatInfoLongDatePattern.cs
Lines 219 to 224 in 71a7d88
Some of these tests could be used to verify correct functionality of Apple Hybrid-Globalization.
cc: @mkhamoyan
The text was updated successfully, but these errors were encountered: