mirror of
https://github.com/jackc/pgx.git
synced 2025-05-28 18:22:15 +00:00
Test &pgtype.QChar
This commit is contained in:
parent
a904e672c1
commit
ace282df66
@ -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)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user