From 650adc13bff4b620e5055be1de746df929a04b0d Mon Sep 17 00:00:00 2001
From: Ms2ger <Ms2ger@igalia.com>
Date: Wed, 13 Jun 2018 09:43:05 +0200
Subject: [PATCH] Intl.Locale: Update expectation for empty values for
 collation and numberingSystem.

The spec changed in https://github.com/tc39/proposal-intl-locale/pull/47.

The tests for calendar were already correct.
---
 test/intl402/Locale/constructor-options-collation-invalid.js   | 3 ++-
 test/intl402/Locale/constructor-options-collation-valid.js     | 1 -
 .../Locale/constructor-options-numberingsystem-invalid.js      | 3 ++-
 .../Locale/constructor-options-numberingsystem-valid.js        | 1 -
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/intl402/Locale/constructor-options-collation-invalid.js b/test/intl402/Locale/constructor-options-collation-invalid.js
index 5e3f4dd0d3..dadf41db1c 100644
--- a/test/intl402/Locale/constructor-options-collation-invalid.js
+++ b/test/intl402/Locale/constructor-options-collation-invalid.js
@@ -18,9 +18,10 @@ features: [Intl.Locale]
 
 /*
  alphanum = (ALPHA / DIGIT)     ; letters and numbers
- collation = [(3*8alphanum) *("-" (3*8alphanum))]
+ collation = (3*8alphanum) *("-" (3*8alphanum))
 */
 const invalidCollationOptions = [
+  "",
   "a",
   "ab",
   "abcdefghi",
diff --git a/test/intl402/Locale/constructor-options-collation-valid.js b/test/intl402/Locale/constructor-options-collation-valid.js
index 1e2bc2fdda..addfa9a167 100644
--- a/test/intl402/Locale/constructor-options-collation-valid.js
+++ b/test/intl402/Locale/constructor-options-collation-valid.js
@@ -37,7 +37,6 @@ features: [Intl.Locale]
 ---*/
 
 const validCollationOptions = [
-  ["", "en-u-co"],
   ["abc", "en-u-co-abc"],
   ["abcd", "en-u-co-abcd"],
   ["abcde", "en-u-co-abcde"],
diff --git a/test/intl402/Locale/constructor-options-numberingsystem-invalid.js b/test/intl402/Locale/constructor-options-numberingsystem-invalid.js
index 60e451ee77..742a9ac483 100644
--- a/test/intl402/Locale/constructor-options-numberingsystem-invalid.js
+++ b/test/intl402/Locale/constructor-options-numberingsystem-invalid.js
@@ -18,9 +18,10 @@ features: [Intl.Locale]
 
 /*
  alphanum = (ALPHA / DIGIT)     ; letters and numbers
- numberingSystem = [(3*8alphanum) *("-" (3*8alphanum))]
+ numberingSystem = (3*8alphanum) *("-" (3*8alphanum))
 */
 const invalidNumberingSystemOptions = [
+  "",
   "a",
   "ab",
   "abcdefghi",
diff --git a/test/intl402/Locale/constructor-options-numberingsystem-valid.js b/test/intl402/Locale/constructor-options-numberingsystem-valid.js
index 517094c282..5ad3716adf 100644
--- a/test/intl402/Locale/constructor-options-numberingsystem-valid.js
+++ b/test/intl402/Locale/constructor-options-numberingsystem-valid.js
@@ -37,7 +37,6 @@ features: [Intl.Locale]
 ---*/
 
 const validNumberingSystemOptions = [
-  ["", "en-u-nu"],
   ["abc", "en-u-nu-abc"],
   ["abcd", "en-u-nu-abcd"],
   ["abcde", "en-u-nu-abcde"],
-- 
GitLab