mirror of
https://github.com/tc39/test262.git
synced 2025-07-13 17:14:38 +02:00
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
14
test/intl402/NumberFormat/constructor-default-value.js
Normal file
14
test/intl402/NumberFormat/constructor-default-value.js
Normal file
@ -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…
x
Reference in New Issue
Block a user