From ae3760c12714f489480fe43bf66ff2a53e4797df Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Tue, 30 Jan 2018 19:11:08 -0500 Subject: [PATCH] Fix failing FR tests --- javascript/i18n/phonenumbers/phonenumbermatcher_test.js | 6 ++---- javascript/i18n/phonenumbers/regioncodefortesting.js | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/javascript/i18n/phonenumbers/phonenumbermatcher_test.js b/javascript/i18n/phonenumbers/phonenumbermatcher_test.js index 1cc014dcd..859f89e7c 100644 --- a/javascript/i18n/phonenumbers/phonenumbermatcher_test.js +++ b/javascript/i18n/phonenumbers/phonenumbermatcher_test.js @@ -557,8 +557,7 @@ var STRICT_GROUPING_CASES = [ new NumberTest("0 900-1 123123", RegionCode.DE), // NDC also found as part of the country calling code; this shouldn't ruin the grouping // expectations. -// XXX_FAILING: FR is missing -// new NumberTest("+33 3 34 2312", RegionCode.FR) + new NumberTest("+33 3 34 2312", RegionCode.FR) ]; /** @@ -590,8 +589,7 @@ var EXACT_GROUPING_CASES = [ new NumberTest("0900-1 123 123", RegionCode.DE), new NumberTest("(0)900-1 123 123", RegionCode.DE), new NumberTest("0 900-1 123 123", RegionCode.DE), -// XXX_FAILING: FR is missing -// new NumberTest("+33 3 34 23 12", RegionCode.FR) + new NumberTest("+33 3 34 23 12", RegionCode.FR) ]; function testMatchesWithPossibleLeniency() { diff --git a/javascript/i18n/phonenumbers/regioncodefortesting.js b/javascript/i18n/phonenumbers/regioncodefortesting.js index c0f4fa7d9..099d4f4ca 100644 --- a/javascript/i18n/phonenumbers/regioncodefortesting.js +++ b/javascript/i18n/phonenumbers/regioncodefortesting.js @@ -47,6 +47,7 @@ i18n.phonenumbers.RegionCode = { CS: 'CS', CX: 'CX', DE: 'DE', + FR: 'FR', GB: 'GB', HU: 'HU', IT: 'IT',