1
0
mirror of https://github.com/jackc/pgx.git synced 2025-05-06 15:39:48 +00:00
pgx/pgtype/point_test.go
Jack Christensen 5be6819a8c Add pgtype.Circle
Also rename Point.Vec2 to Point.P to conform to rest of geometric types.
2017-04-04 20:39:48 -05:00

16 lines
358 B
Go

package pgtype_test
import (
"testing"
"github.com/jackc/pgx/pgtype"
)
func TestPointTranscode(t *testing.T) {
testSuccessfulTranscode(t, "point", []interface{}{
&pgtype.Point{P: pgtype.Vec2{1.234, 5.6789}, Status: pgtype.Present},
&pgtype.Point{P: pgtype.Vec2{-1.234, -5.6789}, Status: pgtype.Present},
&pgtype.Point{Status: pgtype.Null},
})
}