Skip to content

[release/9.0-staging] [TestOnly] Fix NumberFormatInfoGroupSize test#128578

Open
svick wants to merge 2 commits into
dotnet:release/9.0-stagingfrom
svick:backport/pr-120546-to-release/9.0-staging
Open

[release/9.0-staging] [TestOnly] Fix NumberFormatInfoGroupSize test#128578
svick wants to merge 2 commits into
dotnet:release/9.0-stagingfrom
svick:backport/pr-120546-to-release/9.0-staging

Conversation

@svick
Copy link
Copy Markdown
Member

@svick svick commented May 26, 2026

Backport of #120546 to release/9.0-staging

/cc @jeffhandley @tarekgh

Customer Impact

  • Customer reported
  • Found internally

This test failed in CI on 9.0: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1431345&view=ms.vss-test-web.build-test-results-tab&runId=39820274&paneView=debug&resultId=132492

Regression

  • Yes
  • No

Testing

Verified in main, and the failing test is occurring in release/9.0-staging as well.

Risk

Low. Test only, handling new data.

* Fix NumberFormatInfoGroupSize test

* Fix coding style
Copilot AI review requested due to automatic review settings May 26, 2026 12:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backport of #120546 to release/9.0-staging that updates the NumberGroupSizes getter test so it accepts the new ur-IN group sizes returned by recent Apple OS globalization data, in addition to the previously expected values.

Changes:

  • Expands NumberGroupSizes_TestData rows to include a culture name and a second acceptable expected array.
  • Rewrites NumberGroupSizes_Get_ReturnsExpected to accept either of two expected arrays, mirroring the existing pattern in NumberFormatInfoCurrencyGroupSizes.
  • For ur-IN, allows both NumberFormatInfoData.UrINNumberGroupSizes() and { 3, 2 } as valid results.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants