mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 06:55:06 +02:00
Sync test to PR29 of numberformat-v3
https://github.com/tc39/proposal-intl-numberformat-v3/pull/92/files
This commit is contained in:
parent
6432c9df20
commit
e6b4558ae8
@ -7,10 +7,7 @@ es5id: 11.1.1_34
|
|||||||
description: Tests that the option useGrouping is processed correctly.
|
description: Tests that the option useGrouping is processed correctly.
|
||||||
info: |
|
info: |
|
||||||
The "Intl.NumberFormat v3" proposal contradicts the behavior required by the
|
The "Intl.NumberFormat v3" proposal contradicts the behavior required by the
|
||||||
latest revision of ECMA402. Likewise, this test contradicts
|
latest revision of ECMA402.
|
||||||
test-option-useGrouping-extended.js. Until the proposal is included in a
|
|
||||||
published standard (when the tests' discrepancies can be resolved),
|
|
||||||
implementations should only expect to pass one of these two tests.
|
|
||||||
author: Norbert Lindenberg
|
author: Norbert Lindenberg
|
||||||
features: [Intl.NumberFormat-v3]
|
features: [Intl.NumberFormat-v3]
|
||||||
---*/
|
---*/
|
||||||
@ -32,5 +29,5 @@ for (let falsy of [0, null, ""]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (let truthy of [42, "MIN2", {}]) {
|
for (let truthy of [42, "MIN2", {}]) {
|
||||||
assert.throws(RangeError, () => { resolveUseGrouping(truthy); }, "Invalid truthy value");
|
assert.sameValue(resolveUseGrouping(truthy), "auto");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user