mirror of https://github.com/jackc/pgx.git
17 lines
413 B
Go
17 lines
413 B
Go
package pgtype_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/jackc/pgx/pgtype"
|
|
"github.com/jackc/pgx/pgtype/testutil"
|
|
)
|
|
|
|
func TestPointTranscode(t *testing.T) {
|
|
testutil.TestSuccessfulTranscode(t, "point", []interface{}{
|
|
&pgtype.Point{P: pgtype.Vec2{1.234, 5.6789012345}, Status: pgtype.Present},
|
|
&pgtype.Point{P: pgtype.Vec2{-1.234, -5.6789}, Status: pgtype.Present},
|
|
&pgtype.Point{Status: pgtype.Null},
|
|
})
|
|
}
|