mirror of https://github.com/tc39/test262.git
Intl.NumberFormat v3's default roundingMode should be "halfExpand"
The test was using "halfExpand (default)".
This commit is contained in:
parent
9f2814f00f
commit
c124f6c037
|
@ -1,4 +1,5 @@
|
||||||
// Copyright 2021 the V8 project authors. All rights reserved.
|
// 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.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
esid: sec-intl.numberformat.prototype.resolvedoptions
|
esid: sec-intl.numberformat.prototype.resolvedoptions
|
||||||
|
@ -9,7 +10,7 @@ features: [Intl.NumberFormat-v3]
|
||||||
var options;
|
var options;
|
||||||
|
|
||||||
options = new Intl.NumberFormat([], {}).resolvedOptions();
|
options = new Intl.NumberFormat([], {}).resolvedOptions();
|
||||||
assert.sameValue(options.roundingMode, 'halfExpand (default)');
|
assert.sameValue(options.roundingMode, 'halfExpand', 'default');
|
||||||
|
|
||||||
options = new Intl.NumberFormat([], {roundingMode: 'ceil'}).resolvedOptions();
|
options = new Intl.NumberFormat([], {roundingMode: 'ceil'}).resolvedOptions();
|
||||||
assert.sameValue(options.roundingMode, 'ceil');
|
assert.sameValue(options.roundingMode, 'ceil');
|
||||||
|
|
Loading…
Reference in New Issue