Import to pgx main repo in pgtype subdir
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package pgtype_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jackc/pgtype"
|
||||
"github.com/jackc/pgtype/testutil"
|
||||
)
|
||||
|
||||
func TestPathTranscode(t *testing.T) {
|
||||
testutil.TestSuccessfulTranscode(t, "path", []interface{}{
|
||||
&pgtype.Path{
|
||||
P: []pgtype.Vec2{{3.14, 1.678901234}, {7.1, 5.234}},
|
||||
Closed: false,
|
||||
Valid: true,
|
||||
},
|
||||
&pgtype.Path{
|
||||
P: []pgtype.Vec2{{3.14, 1.678}, {7.1, 5.234}, {23.1, 9.34}},
|
||||
Closed: true,
|
||||
Valid: true,
|
||||
},
|
||||
&pgtype.Path{
|
||||
P: []pgtype.Vec2{{7.1, 1.678}, {-13.14, -5.234}},
|
||||
Closed: true,
|
||||
Valid: true,
|
||||
},
|
||||
&pgtype.Path{},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user