|
Hey @nicolashelleringer,
I will look into modifying my code based on your comments and thanks for your suggestions. I still think there is a bur here, though. The code in the PR I pointed to in this JIRA creates two Member instances with locations that are in two distinct locations. Then the following 8 spatial search test cases are executed:
-
Perform a spatial search using a location within a 10KM radius of one Member and verify the correct member is returned
-
Perform the same search and get the projected distance for the Member
-
Perform a spatial search using a location within a 10KM radius of the other Member and verify the correct member is returned
-
Perform the same search and get the projected distance for the Member
-
Perform a spatial search using a location that is not within a 10KM radius of either Member and verify that no member is returned
-
Perform the same search and get the projected distance for the Member
-
Perform a spatial search using a location within a 5000KM radius and verify both members are returned
-
Perform the same search and get the projected distance for the Members
These tests all pass with the current code, except for the last test which only returns one member instead of two. Even if modifying my code to reflect your suggestions "fixes" this issue, I think it is a bug that the current version of my code seems to work in almost all circumstances, but seems to return incorrect results in some circumstances. Thanks
|