1
0
mirror of https://github.com/jackc/pgx.git synced 2025-05-10 17:41:05 +00:00
pgx/pgtype/line_test.go
Jack Christensen 5394aa9a2b Add pgtype.Line
2017-04-04 08:04:54 -05:00

22 lines
368 B
Go

package pgtype_test
import (
"testing"
"github.com/jackc/pgx/pgtype"
)
func TestLineTranscode(t *testing.T) {
testSuccessfulTranscode(t, "line", []interface{}{
&pgtype.Line{
A: 1.23, B: 4.56, C: 7.89,
Status: pgtype.Present,
},
&pgtype.Line{
A: -1.23, B: -4.56, C: -7.89,
Status: pgtype.Present,
},
&pgtype.Line{Status: pgtype.Null},
})
}