Skip to content

Commit

Permalink
Merge #90056
Browse files Browse the repository at this point in the history
90056: geomfn: skip some testcases when running TestVoronoiPolygons on ppc64le r=otan a=ambujkumar3

code change skips a testcase in TestVoronoiPolygons when running on ppc64le

Release note: None

Co-authored-by: Ambuj Kumar <[email protected]>
  • Loading branch information
craig[bot] and ambujkumar3 committed Oct 20, 2022
2 parents 60a2142 + 949fc0d commit 14a7b86
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 14a7b86

Please sign in to comment.