Skip to content

Commit

Permalink
Add another test for MX
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 23, 2024
1 parent 1d928bf commit 123ee78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phonenumbers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,14 @@ func TestMexico(t *testing.T) {
isValid: true,
isValidRegion: true,
},
{
num: "+5214424123123", // too long
parseRegion: "MX",
expectedE164: "+5214424123123",
validRegion: "MX",
isValid: false,
isValidRegion: false,
},
}

runTestBatch(t, tests)
Expand Down

0 comments on commit 123ee78

Please sign in to comment.