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

import (
	"testing"

	"github.com/paulmach/orb"
)

func TestLength(t *testing.T) {
	for _, g := range orb.AllGeometries {
		// should not panic with unsupported type
		Length(g)
	}
}

func TestLengthHaversine(t *testing.T) {
	for _, g := range orb.AllGeometries {
		// should not panic with unsupported type
		LengthHaversine(g)
	}
}