Skip to main content
1 of 2

Test case for geo-distance implementation?

I wrote a method, based on this presentation, that filters points based on their proximity to a target point. I would like to write a few test case. What would be good test cases for this method?

// The method returns all points in the database that are
// close enough to the target point
List<Point> findPointsNear(double longitude, 
                           double latitude,
                           double distanceInKilometers);