From af0f53bb40c4da418ab48646f046e57ac5256632 Mon Sep 17 00:00:00 2001
From: Ujjwal Sharma <usharma1998@gmail.com>
Date: Tue, 2 Oct 2018 01:18:23 +0530
Subject: [PATCH] intl: increase coverage for the NumberFormat constructor

Increase coverage for the Intl.NumberFormat constructor by testing that
passing a string value to the Intl.NumberFormat constructor is
equivalent to passing an Array containing the same string value.
---
 .../constructor-locales-string.js             | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 test/intl402/NumberFormat/constructor-locales-string.js

diff --git a/test/intl402/NumberFormat/constructor-locales-string.js b/test/intl402/NumberFormat/constructor-locales-string.js
new file mode 100644
index 0000000000..226ec4ea78
--- /dev/null
+++ b/test/intl402/NumberFormat/constructor-locales-string.js
@@ -0,0 +1,19 @@
+// 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 passing a string value to the Intl.NumberFormat constructor is
+  equivalent to passing an Array containing the same string value.
+info: |
+  9.2.1 CanonicalizeLocaleList ( locales )
+
+  3 .If Type(locales) is String, then
+    a. Let O be CreateArrayFromList(« locales »).
+---*/
+
+const actual = Intl.NumberFormat('en-US');
+const expected = Intl.NumberFormat(['en-US']);
+
+assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());
-- 
GitLab