Skip to content

Commit

Permalink
Fix two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kad-korpem committed Jan 24, 2024
1 parent 3a3319d commit 442205f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snap/snap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
)

func Test_snapPolygon(t *testing.T) {
func TestSnap_snapPolygon(t *testing.T) {
tests := []struct {
name string
tms tms20.TileMatrixSet
Expand Down Expand Up @@ -223,7 +223,7 @@ func Test_snapPolygon(t *testing.T) {
}},
want: map[tms20.TMID][]geom.Polygon{0: {
{
{{90810.56, 530415.04}, {90595.52, 530415.04}},
{{90595.52, 530415.04}, {90810.56, 530415.04}},
},
}},
},
Expand All @@ -239,7 +239,7 @@ func Test_snapPolygon(t *testing.T) {
}},
want: map[tms20.TMID][]geom.Polygon{0: {
{
{{211017.92, 574928.32}, {211232.96, 574928.32}},
{{211232.96, 574928.32}, {211017.92, 574928.32}},
},
}},
},
Expand Down Expand Up @@ -468,8 +468,8 @@ func Test_snapPolygon(t *testing.T) {
want: map[tms20.TMID][]geom.Polygon{1: { // 1 polygon with 2 inner rings:
{
{{0.25, 0.25}, {12.25, 0.25}, {12.25, 6.25}, {12.25, 12.25}, {6.25, 6.25}, {6.25, 12.25}, {0.25, 6.25}},
{{6.25, 6.25}, {3.25, 3.25}, {0.25, 6.25}},
{{12.25, 6.25}, {9.25, 3.25}, {6.25, 6.25}},
{{6.25, 6.25}, {3.25, 3.25}, {0.25, 6.25}},
},
}},
},
Expand Down Expand Up @@ -559,7 +559,7 @@ func Test_snapPolygon(t *testing.T) {
}
}

func Test_ringContains(t *testing.T) {
func TestSnap_ringContains(t *testing.T) {
type args struct {
ring [][2]float64
point [2]float64
Expand Down

0 comments on commit 442205f

Please sign in to comment.