aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/paulmach/orb/clone_test.go
blob: 5e0cab50c0d739a5979762c5bcafa9e4f408781c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package orb

import (
	"fmt"
	"testing"
)

func TestClone(t *testing.T) {
	for _, g := range AllGeometries {
		// this closure is necessary if tests are run in parallel, maybe
		func(geom Geometry) {
			t.Run(fmt.Sprintf("%T", g), func(t *testing.T) {
				// should not panic
				Clone(geom)
			})
		}(g)
	}
}