Skip to content

Commit

Permalink
Merge pull request #32 from wheniwork/master
Browse files Browse the repository at this point in the history
Update metadata to 8.10.17
  • Loading branch information
nicpottier authored Sep 2, 2019
2 parents 9ca612c + ff00f40 commit dd6e918
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 30 deletions.
2 changes: 1 addition & 1 deletion metadata_bin.go

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions phonenumbers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,46 @@ func TestBurkinaFaso(t *testing.T) {
runTestBatch(t, tests)
}

// see https://groups.google.com/forum/#!topic/libphonenumber-discuss/pecTIo_HpVE
func TestMexico(t *testing.T) {
tests := []testCase{
{
num: "044 664 899 1010",
parseRegion: "MX",
expectedE164: "+526648991010",
validRegion: "MX",
isValid: true,
isValidRegion: true,
},
{
num: "01 800 123 2222",
parseRegion: "MX",
expectedE164: "+528001232222",
validRegion: "MX",
isValid: true,
isValidRegion: true,
},
{
num: "+52 664 899 1010",
parseRegion: "",
expectedE164: "+526648991010",
validRegion: "MX",
isValid: true,
isValidRegion: true,
},
{
num: "+52 1 664 899 1010",
parseRegion: "",
expectedE164: "+526648991010",
validRegion: "MX",
isValid: true,
isValidRegion: true,
},
}

runTestBatch(t, tests)
}

func TestParsing(t *testing.T) {
tests := []struct {
number string
Expand Down
12 changes: 6 additions & 6 deletions prefix_to_carriers_bin.go

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions prefix_to_geocodings_bin.go

Large diffs are not rendered by default.

0 comments on commit dd6e918

Please sign in to comment.