From e6b4558ae8407bcb6e6a3b0fee6534a3a9e95865 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Tue, 12 Jul 2022 11:34:08 -0700 Subject: [PATCH] Sync test to PR29 of numberformat-v3 https://github.com/tc39/proposal-intl-numberformat-v3/pull/92/files --- test/intl402/NumberFormat/test-option-useGrouping.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/intl402/NumberFormat/test-option-useGrouping.js b/test/intl402/NumberFormat/test-option-useGrouping.js index 6edb43f606..f39b5da0b7 100644 --- a/test/intl402/NumberFormat/test-option-useGrouping.js +++ b/test/intl402/NumberFormat/test-option-useGrouping.js @@ -7,10 +7,7 @@ es5id: 11.1.1_34 description: Tests that the option useGrouping is processed correctly. info: | The "Intl.NumberFormat v3" proposal contradicts the behavior required by the - latest revision of ECMA402. Likewise, this test contradicts - 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. + latest revision of ECMA402. author: Norbert Lindenberg features: [Intl.NumberFormat-v3] ---*/ @@ -32,5 +29,5 @@ for (let falsy of [0, null, ""]) { } for (let truthy of [42, "MIN2", {}]) { - assert.throws(RangeError, () => { resolveUseGrouping(truthy); }, "Invalid truthy value"); + assert.sameValue(resolveUseGrouping(truthy), "auto"); }