Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minMaxDist floating point rounding errors #56

Merged
merged 1 commit into from
Feb 17, 2024
Merged

fix minMaxDist floating point rounding errors #56

merged 1 commit into from
Feb 17, 2024

Conversation

fumin
Copy link
Contributor

@fumin fumin commented Feb 16, 2024

This manifests itsef in

#29

rtree.go Outdated Show resolved Hide resolved
@@ -1354,6 +1354,24 @@ func TestNearestNeighborsHalf(t *testing.T) {
}
}

func TestMinMaxDistFloatingPointRoundingError(t *testing.T) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the test case too!

@dhconnelly dhconnelly merged commit ca754ec into dhconnelly:master Feb 17, 2024
1 check passed
@dhconnelly
Copy link
Owner

Thanks for (another) contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants