Browse Source

Fix failing FR tests

pull/2107/head
David Humphrey 8 years ago
parent
commit
ae3760c127
2 changed files with 3 additions and 4 deletions
  1. +2
    -4
      javascript/i18n/phonenumbers/phonenumbermatcher_test.js
  2. +1
    -0
      javascript/i18n/phonenumbers/regioncodefortesting.js

+ 2
- 4
javascript/i18n/phonenumbers/phonenumbermatcher_test.js View File

@ -557,8 +557,7 @@ var STRICT_GROUPING_CASES = [
new NumberTest("0 900-1 123123", RegionCode.DE), new NumberTest("0 900-1 123123", RegionCode.DE),
// NDC also found as part of the country calling code; this shouldn't ruin the grouping // NDC also found as part of the country calling code; this shouldn't ruin the grouping
// expectations. // 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("0900-1 123 123", RegionCode.DE),
new NumberTest("(0)900-1 123 123", RegionCode.DE), new NumberTest("(0)900-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() { function testMatchesWithPossibleLeniency() {


+ 1
- 0
javascript/i18n/phonenumbers/regioncodefortesting.js View File

@ -47,6 +47,7 @@ i18n.phonenumbers.RegionCode = {
CS: 'CS', CS: 'CS',
CX: 'CX', CX: 'CX',
DE: 'DE', DE: 'DE',
FR: 'FR',
GB: 'GB', GB: 'GB',
HU: 'HU', HU: 'HU',
IT: 'IT', IT: 'IT',


Loading…
Cancel
Save