// A regression test to make sure we find locations near a known-good location.
A regression test to make sure we find locations near a known-good location.
// A regression test to make sure we find locations near a known - good location .
func TestCrimeFinderFindNearRegression(t *testing.T) {
	finder, _ := NewCrimeFinder("../data/crime_incident_data_wgs84.csv")
	point := Point{45.5184, -122.6554}
	result, _ := finder.FindNear(point)
	expectedLocations := 247
	numLocations := len(result.Locations)
	if expectedLocations != numLocations {
		t.Error("Wrong number of Locations: ", numLocations)
	}
}
func TestCrimeFinderFindNearRegression ( t * testing . T ) { finder , _ := NewCrimeFinder ( " " ) point := Point { 45.5184 , - 122.6554 } result , _ := finder . FindNear ( point ) expectedLocations := 247 numLocations := len ( result . Locations ) if expectedLocations != numLocations { t . Error ( " " , numLocations ) } }
A regression test to make sure we find locations near a known-good location.
A regression test to make sure we find locations near a known - good location .