2
0

Removed TextEncoder and BinaryEncoder

Restructured / fixed a lot of tests along the way.
This commit is contained in:
Jack Christensen
2022-01-22 12:07:35 -06:00
parent eb0a4c9626
commit 3a90c6c879
50 changed files with 295 additions and 758 deletions
+1 -13
View File
@@ -8,7 +8,7 @@ import (
)
func TestBoxCodec(t *testing.T) {
testPgxCodec(t, "box", []PgxTranscodeTestCase{
testutil.RunTranscodeTests(t, "box", []testutil.TranscodeTestCase{
{
pgtype.Box{
P: [2]pgtype.Vec2{{7.1, 5.2345678}, {3.14, 1.678}},
@@ -35,15 +35,3 @@ func TestBoxCodec(t *testing.T) {
{nil, new(pgtype.Box), isExpectedEq(pgtype.Box{})},
})
}
func TestBoxNormalize(t *testing.T) {
testutil.TestSuccessfulNormalize(t, []testutil.NormalizeTest{
{
SQL: "select '3.14, 1.678, 7.1, 5.234'::box",
Value: &pgtype.Box{
P: [2]pgtype.Vec2{{7.1, 5.234}, {3.14, 1.678}},
Valid: true,
},
},
})
}