Test &pgtype.QChar

batch-wip
Jack Christensen 2017-05-20 08:36:40 -05:00
parent a904e672c1
commit ace282df66
1 changed files with 6 additions and 6 deletions

View File

@ -11,12 +11,12 @@ import (
func TestQCharTranscode(t *testing.T) {
testutil.TestPgxSuccessfulTranscodeEqFunc(t, `"char"`, []interface{}{
pgtype.QChar{Int: math.MinInt8, Status: pgtype.Present},
pgtype.QChar{Int: -1, Status: pgtype.Present},
pgtype.QChar{Int: 0, Status: pgtype.Present},
pgtype.QChar{Int: 1, Status: pgtype.Present},
pgtype.QChar{Int: math.MaxInt8, Status: pgtype.Present},
pgtype.QChar{Int: 0, Status: pgtype.Null},
&pgtype.QChar{Int: math.MinInt8, Status: pgtype.Present},
&pgtype.QChar{Int: -1, Status: pgtype.Present},
&pgtype.QChar{Int: 0, Status: pgtype.Present},
&pgtype.QChar{Int: 1, Status: pgtype.Present},
&pgtype.QChar{Int: math.MaxInt8, Status: pgtype.Present},
&pgtype.QChar{Int: 0, Status: pgtype.Null},
}, func(a, b interface{}) bool {
return reflect.DeepEqual(a, b)
})