Rollback some of the deleted postgres unsigned integer constructors.
This commit is contained in:
parent
f8f2f75a0d
commit
cf0923fdd3
2 changed files with 30 additions and 0 deletions
|
|
@ -34,6 +34,21 @@ func TestInt64(t *testing.T) {
|
|||
assertSerialize(t, Int64(val), `$1::bigint`, val)
|
||||
}
|
||||
|
||||
func TestUint8(t *testing.T) {
|
||||
val := uint8(math.MaxUint8)
|
||||
assertSerialize(t, Uint8(val), `$1::smallint`, val)
|
||||
}
|
||||
|
||||
func TestUint16(t *testing.T) {
|
||||
val := uint16(math.MaxUint16)
|
||||
assertSerialize(t, Uint16(val), `$1::integer`, val)
|
||||
}
|
||||
|
||||
func TestUint32(t *testing.T) {
|
||||
val := uint32(math.MaxUint32)
|
||||
assertSerialize(t, Uint32(val), `$1::bigint`, val)
|
||||
}
|
||||
|
||||
func TestFloat(t *testing.T) {
|
||||
assertSerialize(t, Float(12.34), `$1`, float64(12.34))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue