Skip to content

Commit

Permalink
Merge #81894
Browse files Browse the repository at this point in the history
81894: ppc64le - fix test failure of TestSegmentize/GEOMETRYCOLLECTION_ r=rafiss a=prashantkhoje

Allow floating point approximation within an epsilon

Co-authored-by: Prashant Khoje <[email protected]>
  • Loading branch information
craig[bot] and prashantkhoje committed May 27, 2022
2 parents 74b8d03 + 1d53ba7 commit 5229319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/geo/geomfn/segmentize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func TestSegmentize(t *testing.T) {
require.NoError(t, err)
expectedGeom, err := geo.ParseGeometry(test.expectedWKT)
require.NoError(t, err)
require.Equal(t, expectedGeom, modifiedGeom)
requireGeometryWithinEpsilon(t, expectedGeom, modifiedGeom, 1e-6)
})
}
// Test for segment maximum length as negative.
Expand Down

0 comments on commit 5229319

Please sign in to comment.