15 lines
281 B
Go
15 lines
281 B
Go
package countryCenter
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetCountryCenter(t *testing.T) {
|
|
lat, lon, found := GetCountryCenterByCountryOrCity("SG", "Singapore")
|
|
if !found {
|
|
t.Error("GetCountryCenter('HK') should return found = true")
|
|
}
|
|
t.Logf("lat = %v, lon = %v", lat, lon)
|
|
|
|
}
|