mirror of https://github.com/tc39/test262.git
intl: increase coverage for NumberFormat constructor
Increase coverage for the Intl.NumberFormat constructor by adding tests checking if appropriate default values are used.
This commit is contained in:
parent
5de1831c48
commit
bba2429cad
|
@ -0,0 +1,14 @@
|
||||||
|
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-initializenumberformat
|
||||||
|
description: >
|
||||||
|
Tests that the constructor for Intl.NumberFormat uses appropriate default
|
||||||
|
values for its arguments (locales and options).
|
||||||
|
---*/
|
||||||
|
|
||||||
|
const actual = new Intl.NumberFormat();
|
||||||
|
const expected = new Intl.NumberFormat([], { __proto__: null });
|
||||||
|
|
||||||
|
assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());
|
Loading…
Reference in New Issue