Fixed clip test #558

This commit is contained in:
tidwall 2020-05-03 09:59:49 -07:00
parent f02dee3db2
commit 70cd167fc0

View File

@ -88,7 +88,7 @@ func TestClipPolygon2(t *testing.T) {
}, },
} }
polygon := PPO(exterior, holes) polygon := PPO(exterior, holes)
clipped := Clip(polygon, RO(1.1, 0.8, 1.15, 2.1)) clipped := Clip(polygon, RO(1.1, 0.8, 1.15, 2.1), nil)
cp, ok := clipped.(*geojson.Polygon) cp, ok := clipped.(*geojson.Polygon)
if !ok { if !ok {
t.Fatal("wrong type") t.Fatal("wrong type")