Skip to content

Commit

Permalink
Skip GEOS tests with unsupported GEOS version
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed Oct 15, 2023
1 parent 8cdace3 commit 82fbf37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geos/entrypoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package geos_test
import (
"math"
"strconv"
"strings"
"testing"

"github.com/peterstace/simplefeatures/geom"
Expand Down Expand Up @@ -825,6 +826,9 @@ func TestMakeValid(t *testing.T) {
expectErr(t, err)
in := geomFromWKT(t, tt.input, geom.NoValidate{})
gotGeom, err := geos.MakeValid(in)
if err != nil && strings.Contains(err.Error(), "unsupported") {
t.Skip(err)
}
expectNoErr(t, err)
wantGeom := geomFromWKT(t, tt.wantOutput)
expectGeomEq(t, gotGeom, wantGeom, geom.IgnoreOrder)
Expand Down Expand Up @@ -913,6 +917,9 @@ func TestCoverageUnion(t *testing.T) {
t.Run(strconv.Itoa(i), func(t *testing.T) {
in := geomFromWKT(t, tc.input)
gotGeom, err := geos.CoverageUnion(in)
if err != nil && strings.Contains(err.Error(), "unsupported") {
t.Skip(err)
}
if tc.wantErr {
expectErr(t, err)
} else {
Expand Down

0 comments on commit 82fbf37

Please sign in to comment.