lib/encoding: small fixes in tests after the PR #114

This commit is contained in:
Aliaksandr Valialkin 2019-07-23 19:37:51 +03:00
parent fcf09aaa3c
commit 7a133567fb
2 changed files with 3 additions and 3 deletions

View file

@ -71,8 +71,8 @@ func TestMarshalInt64ArraySize(t *testing.T) {
}
testMarshalInt64ArraySize(t, va, 1, 500, 1300)
testMarshalInt64ArraySize(t, va, 2, 600, 1400)
testMarshalInt64ArraySize(t, va, 3, 900, 1800)
testMarshalInt64ArraySize(t, va, 2, 500, 1400)
testMarshalInt64ArraySize(t, va, 3, 800, 1800)
testMarshalInt64ArraySize(t, va, 4, 1300, 2100)
testMarshalInt64ArraySize(t, va, 5, 2000, 3200)
testMarshalInt64ArraySize(t, va, 6, 3000, 4800)

View file

@ -192,7 +192,7 @@ func TestMarshalUnmarshalValues(t *testing.T) {
}
}
func TestMarshalUnmarshalInt64ArrayConstant(t *testing.T) {
func TestMarshalUnmarshalInt64ArrayGeneric(t *testing.T) {
testMarshalUnmarshalInt64Array(t, []int64{1, 20, 234}, 4, MarshalTypeNearestDelta2)
testMarshalUnmarshalInt64Array(t, []int64{1, 20, -2345, 678934, 342}, 4, MarshalTypeNearestDelta)
testMarshalUnmarshalInt64Array(t, []int64{1, 20, 2345, 6789, 12342}, 4, MarshalTypeNearestDelta2)