Skip to content

Commit

Permalink
geomfn: skip some testcases when running TestVoronoiPolygons on ppc64le
Browse files Browse the repository at this point in the history
code change skips a testcase in TestVoronoiPolygons when running on ppc64le
Epic: none
Release note: None
  • Loading branch information
ambujkumar3 authored and Thomas Hardy committed Nov 2, 2022
1 parent 2561265 commit 4f5c69a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/geo/geomfn/voronoi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestVoronoiPolygons(t *testing.T) {
expected geo.Geometry
expectedErr error
skipOnArm64 bool
skipPpc64le bool
}{
{
name: "Computes Voronoi Polygons for a given MultiPoint",
Expand Down Expand Up @@ -79,6 +80,7 @@ func TestVoronoiPolygons(t *testing.T) {
},
expected: geo.MustParseGeometry("MULTILINESTRING ((310.3571428571428 500, 353.515625 298.59375), (353.515625 298.59375, 306.875 231.9642857142857), (306.875 231.9642857142857, 110 175.7142857142857), (589.1666666666666 -10, 306.875 231.9642857142857), (353.515625 298.59375, 590 204))"),
skipOnArm64: true,
skipPpc64le: true,
},
{
name: "Computes Voronoi Diagram for a given MultiPoint with an empty envelope",
Expand All @@ -95,6 +97,9 @@ func TestVoronoiPolygons(t *testing.T) {
if runtime.GOARCH == "arm64" && tc.skipOnArm64 {
continue
}
if runtime.GOARCH == "ppc64le" && tc.skipPpc64le {
continue
}
t.Run(tc.name, func(t *testing.T) {
actual, err := VoronoiDiagram(tc.args.a, tc.args.env, tc.args.tol, tc.args.onlyEdges)
if tc.expectedErr != nil && tc.expectedErr.Error() != err.Error() {
Expand Down

0 comments on commit 4f5c69a

Please sign in to comment.