-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
test: fix intl tests on small-icu builds #41939
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -104,6 +104,12 @@ if (!common.hasIntl) { | |||||||||||||||
| const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890); | ||||||||||||||||
| assert.strictEqual(numberFormat, '12,345.679'); | ||||||||||||||||
| } | ||||||||||||||||
| // If list is specified and doesn't contain 'en-US' then return. | ||||||||||||||||
| if (process.config.variables.icu_locales && !haveLocale('en-US')) { | ||||||||||||||||
| common.printSkipMessage( | ||||||||||||||||
| 'detailed Intl tests because Node.js was built with small ICU.'); | ||||||||||||||||
| return; | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, I copied it from node/test/parallel/test-intl.js Lines 75 to 81 in 07e83f7
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's true, but the |
||||||||||||||||
| } | ||||||||||||||||
| // Number format resolved options | ||||||||||||||||
| { | ||||||||||||||||
| const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' }); | ||||||||||||||||
|
|
||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.