mirror of https://github.com/tidwall/tile38.git
19 lines
399 B
Go
19 lines
399 B
Go
package object
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tidwall/assert"
|
|
"github.com/tidwall/geojson"
|
|
"github.com/tidwall/geojson/geometry"
|
|
"github.com/tidwall/tile38/internal/field"
|
|
)
|
|
|
|
func P(x, y float64) geojson.Object {
|
|
return geojson.NewSimplePoint(geometry.Point{X: 10, Y: 20})
|
|
}
|
|
func TestObject(t *testing.T) {
|
|
o := New("hello", P(10, 20), 99, field.List{})
|
|
assert.Assert(o.ID() == "hello")
|
|
}
|