Skip to content

Add tests for Intl.PluralRules.prototype.resolvedOptions().pluralCategories order#4275

Merged
Ms2ger merged 3 commits intotc39:mainfrom
ben-allen:pluralrules-sort-order-pr-918
Dec 3, 2024
Merged

Add tests for Intl.PluralRules.prototype.resolvedOptions().pluralCategories order#4275
Ms2ger merged 3 commits intotc39:mainfrom
ben-allen:pluralrules-sort-order-pr-918

Conversation

@ben-allen
Copy link
Copy Markdown
Contributor

@ben-allen ben-allen commented Oct 21, 2024

Array elements should appear in following order: "zero", "one", "two", "few", "many", "other"

see tc39/ecma402#918

fix #4261

@ben-allen ben-allen requested a review from a team as a code owner October 21, 2024 23:24
@ben-allen ben-allen force-pushed the pluralrules-sort-order-pr-918 branch from 2b9b41b to 18e3e85 Compare October 21, 2024 23:27
Comment on lines 13 to 15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this not need a locale: [...] tag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed! (also alphabetized the locales just to be doing it)

Comment thread test/intl402/PluralRules/prototype/resolvedOptions/plural-categories-order.js Outdated
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Nov 27, 2024
…olvedOptions. r=spidermonkey-reviewers,dminor

Sort plural categories per <tc39/ecma402#918>.

Tests are in <tc39/test262#4275>.

Differential Revision: https://phabricator.services.mozilla.com/D228569
Copy link
Copy Markdown
Contributor

@anba anba left a comment

Choose a reason for hiding this comment

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

Expected results match SM with https://bugzilla.mozilla.org/show_bug.cgi?id=1930465 applied.

Copy link
Copy Markdown
Contributor

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

Thanks!

…egories` order

Array elements should appear in following order: "zero", "one", "two", "few", "many", "other"

see tc39/ecma402#918
@Ms2ger Ms2ger force-pushed the pluralrules-sort-order-pr-918 branch from 8c9180e to 25fa8e6 Compare December 3, 2024 13:37
@Ms2ger Ms2ger enabled auto-merge (squash) December 3, 2024 13:38
@Ms2ger Ms2ger merged commit 4053ff2 into tc39:main Dec 3, 2024
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…olvedOptions. r=spidermonkey-reviewers,dminor

Sort plural categories per <tc39/ecma402#918>.

Tests are in <tc39/test262#4275>.

Differential Revision: https://phabricator.services.mozilla.com/D228569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need to add test for ECMA402 PR918

3 participants