diff --git a/iso3166.go b/iso3166.go index ce4590b..287594e 100644 --- a/iso3166.go +++ b/iso3166.go @@ -1620,6 +1620,14 @@ func populateISO3166() { i.PhoneNumberLengths = []int{7} iso3166Datas = append(iso3166Datas, i) + i.Alpha2 = "SZ" + i.Alpha3 = "SWZ" + i.CountryCode = "268" + i.CountryName = "Swaziland" + i.MobileBeginWith = []string{"7"} + i.PhoneNumberLengths = []int{8} + iso3166Datas = append(iso3166Datas, i) + i.Alpha2 = "SY" i.Alpha3 = "SYR" i.CountryCode = "963" diff --git a/phonenumber_test.go b/phonenumber_test.go index 32ef878..2613cb5 100644 --- a/phonenumber_test.go +++ b/phonenumber_test.go @@ -20,6 +20,7 @@ var mobWithLLCountryTests = []struct { {"5117061970", "PE"}, {"862185551232", "CN"}, {"38391234999", "XK"}, + {"26822123456", "SZ"}, // Mobile numbers {"39339638066", "IT"}, @@ -30,6 +31,7 @@ var mobWithLLCountryTests = []struct { {"51999400500", "PE"}, {"8614855512329", "CN"}, {"38342224999", "XK"}, + {"26876123456", "SZ"}, } func TestGetCountryForMobileNumberWithLandLine(t *testing.T) {