Skip to content

Commit

Permalink
Merge pull request #240 from xmcqueen/master
Browse files Browse the repository at this point in the history
fixed compile problem in logical_type_test. Changed MaxInt to MaxInt32
  • Loading branch information
xmcqueen authored Jan 26, 2022
2 parents ec5a08b + 8afc8ae commit 91f8062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logical_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TestDecimalFixedLogicalTypeEncode(t *testing.T) {
testBinaryCodecPass(t, schemaPrecision1, big.NewRat(163, 10), []byte("\x00\x00\x00\xa3"))
testBinaryCodecPass(t, schemaPrecision1, big.NewRat(-130, 4), []byte("\xff\xff\xfe\xbb"))
testBinaryCodecPass(t, schemaPrecision1, big.NewRat(25, 2), []byte("\x00\x00\x00\x7d"))
testBinaryEncodeFail(t, schemaPrecision1, big.NewRat(math.MaxInt, -1), "datum size ought to equal schema size")
testBinaryEncodeFail(t, schemaPrecision1, big.NewRat(math.MaxInt32, -1), "datum size ought to equal schema size")
}

func TestDecimalBytesLogicalTypeInRecordEncode(t *testing.T) {
Expand Down

0 comments on commit 91f8062

Please sign in to comment.