Skip to content

Conversation

gdey
Copy link
Member

@gdey gdey commented Mar 15, 2021

It was reported that one of our comparison functions was using math.NaN incorrectly. Turns out this comparison function was a duplicate of
another function that was doing the comparison correctly, and had tests. Removed the duplicate function, and references to it were ported to
the correct function.

fixes #115

It was reported that one of our comparison functions was using math.NaN incorrectly. Turns out this comparison function was a duplicate of
another function that was doing the comparison correctly, and had tests. Removed the duplicate function, and references to it were ported to
the correct function.

fixes #115
@gdey gdey requested a review from ear7h March 15, 2021 18:58
@coveralls
Copy link

Pull Request Test Coverage Report for Build 517

  • 28 of 46 (60.87%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 56.235%

Changes Missing Coverage Covered Lines Changed/Added Lines %
encoding/gpkg/gpkg.go 0 1 0.0%
geom.go 0 1 0.0%
planar/triangulate/delaunay/subdivision/geom.go 0 1 0.0%
encoding/gpkg/binary_header.go 0 2 0.0%
cmp/compare.go 0 4 0.0%
cmp/empty.go 28 37 75.68%
Totals Coverage Status
Change from base Build 515: 0.2%
Covered Lines: 6688
Relevant Lines: 11893

💛 - Coveralls

Copy link
Member

@ARolek ARolek left a comment

Choose a reason for hiding this comment

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

LGTM

@gdey
Copy link
Member Author

gdey commented Mar 16, 2021

There are two breaking changing IsNil, and IsEmptyGeo went from bool, error to just bool.

@gdey gdey merged commit 858eeb6 into master Jul 28, 2021
@gdey gdey deleted the fix_nan_comparisons branch July 26, 2024 19:57
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.

[geom] fix NaN comparisons
3 participants