File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1620,6 +1620,14 @@ func populateISO3166() {
1620
1620
i .PhoneNumberLengths = []int {7 }
1621
1621
iso3166Datas = append (iso3166Datas , i )
1622
1622
1623
+ i .Alpha2 = "SZ"
1624
+ i .Alpha3 = "SWZ"
1625
+ i .CountryCode = "268"
1626
+ i .CountryName = "Swaziland"
1627
+ i .MobileBeginWith = []string {"7" }
1628
+ i .PhoneNumberLengths = []int {8 }
1629
+ iso3166Datas = append (iso3166Datas , i )
1630
+
1623
1631
i .Alpha2 = "SY"
1624
1632
i .Alpha3 = "SYR"
1625
1633
i .CountryCode = "963"
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ var mobWithLLCountryTests = []struct {
20
20
{"5117061970" , "PE" },
21
21
{"862185551232" , "CN" },
22
22
{"38391234999" , "XK" },
23
+ {"26822123456" , "SZ" },
23
24
24
25
// Mobile numbers
25
26
{"39339638066" , "IT" },
@@ -30,6 +31,7 @@ var mobWithLLCountryTests = []struct {
30
31
{"51999400500" , "PE" },
31
32
{"8614855512329" , "CN" },
32
33
{"38342224999" , "XK" },
34
+ {"26876123456" , "SZ" },
33
35
}
34
36
35
37
func TestGetCountryForMobileNumberWithLandLine (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments