Intl.NumberFormat v3's default roundingMode should be "halfExpand"

The test was using "halfExpand (default)".
This commit is contained in:
Yusuke Suzuki 2021-11-12 18:02:09 -08:00 committed by Rick Waldron
parent 9f2814f00f
commit c124f6c037
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
// Copyright 2021 the V8 project authors. All rights reserved.
// Copyright 2021 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype.resolvedoptions
@ -9,7 +10,7 @@ features: [Intl.NumberFormat-v3]
var options;
options = new Intl.NumberFormat([], {}).resolvedOptions();
assert.sameValue(options.roundingMode, 'halfExpand (default)');
assert.sameValue(options.roundingMode, 'halfExpand', 'default');
options = new Intl.NumberFormat([], {roundingMode: 'ceil'}).resolvedOptions();
assert.sameValue(options.roundingMode, 'ceil');