diff --git a/test/intl402/NumberFormat/constructor-default-value.js b/test/intl402/NumberFormat/constructor-default-value.js new file mode 100644 index 0000000000000000000000000000000000000000..00c6081a44e6d32e9aafc0d3cd7688b1f46eb074 --- /dev/null +++ b/test/intl402/NumberFormat/constructor-default-value.js @@ -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());