From d07f6166099949397f245b3a55febd222b516b04 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 23 Jul 2019 19:37:51 +0300 Subject: [PATCH] lib/encoding: small fixes in tests after the PR #114 --- lib/encoding/encoding_cgo_test.go | 4 ++-- lib/encoding/encoding_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/encoding/encoding_cgo_test.go b/lib/encoding/encoding_cgo_test.go index 6febd8789..2d31cb7a4 100644 --- a/lib/encoding/encoding_cgo_test.go +++ b/lib/encoding/encoding_cgo_test.go @@ -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) diff --git a/lib/encoding/encoding_test.go b/lib/encoding/encoding_test.go index 3ead61fdb..588a25dac 100644 --- a/lib/encoding/encoding_test.go +++ b/lib/encoding/encoding_test.go @@ -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)