pgx/point_test.go
2017-04-03 17:53:32 -05:00

16 lines
338 B
Go

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