Skip to content

Commit 123ee78

Browse files
committed
Add another test for MX
1 parent 1d928bf commit 123ee78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

phonenumbers_test.go

+8
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,14 @@ func TestMexico(t *testing.T) {
11561156
isValid: true,
11571157
isValidRegion: true,
11581158
},
1159+
{
1160+
num: "+5214424123123", // too long
1161+
parseRegion: "MX",
1162+
expectedE164: "+5214424123123",
1163+
validRegion: "MX",
1164+
isValid: false,
1165+
isValidRegion: false,
1166+
},
11591167
}
11601168

11611169
runTestBatch(t, tests)

0 commit comments

Comments
 (0)