mirror of
https://github.com/jackc/pgx.git
synced 2025-05-04 06:30:24 +00:00
16 lines
338 B
Go
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},
|
|
})
|
|
}
|