Skip to content

Commit

Permalink
Update logical_type_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr65 authored Jul 8, 2020
1 parent 38d224a commit eb7d48f
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 @@ -113,7 +113,7 @@ func TestDecimalFixedLogicalTypeEncode(t *testing.T) {

func TestDecimalBytesLogicalTypeInRecordEncode(t *testing.T) {
schema := `{"type": "record", "name": "myrecord", "fields" : [
{"name": "mydecimal", "type": "bytes", "logicalType": "decimal", "precision": 4, "scale": 2}]}`
{"name": "mydecimal", "type": "bytes", "logicalType": "decimal", "precision": 4, "scale": 2}]}`
testBinaryCodecPass(t, schema, map[string]interface{}{"mydecimal": big.NewRat(617, 50)}, []byte("\x04\x04\xd2"))
}

Expand Down

0 comments on commit eb7d48f

Please sign in to comment.