From 154e09f4e4139490d8d48219dd3e2024349eeab8 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 16 Nov 2020 16:35:34 +0300 Subject: [PATCH] [#199] sdk/accounting: Rename test file package Signed-off-by: Leonard Lyubich --- pkg/accounting/decimal_test.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/accounting/decimal_test.go b/pkg/accounting/decimal_test.go index a15334b..ecab5bb 100644 --- a/pkg/accounting/decimal_test.go +++ b/pkg/accounting/decimal_test.go @@ -1,13 +1,14 @@ -package accounting +package accounting_test import ( "testing" + "github.com/nspcc-dev/neofs-api-go/pkg/accounting" "github.com/stretchr/testify/require" ) func TestDecimal_Value(t *testing.T) { - d := NewDecimal() + d := accounting.NewDecimal() v := int64(3) d.SetValue(v) @@ -16,7 +17,7 @@ func TestDecimal_Value(t *testing.T) { } func TestDecimal_Precision(t *testing.T) { - d := NewDecimal() + d := accounting.NewDecimal() p := uint32(3) d.SetPrecision(p) @@ -25,7 +26,7 @@ func TestDecimal_Precision(t *testing.T) { } func TestDecimalEncoding(t *testing.T) { - d := NewDecimal() + d := accounting.NewDecimal() d.SetValue(1) d.SetPrecision(2) @@ -33,7 +34,7 @@ func TestDecimalEncoding(t *testing.T) { data, err := d.Marshal() require.NoError(t, err) - d2 := NewDecimal() + d2 := accounting.NewDecimal() require.NoError(t, d2.Unmarshal(data)) require.Equal(t, d, d2) @@ -43,7 +44,7 @@ func TestDecimalEncoding(t *testing.T) { data, err := d.MarshalJSON() require.NoError(t, err) - d2 := NewDecimal() + d2 := accounting.NewDecimal() require.NoError(t, d2.UnmarshalJSON(data)) require.Equal(t, d, d2)