From 994f5ec88cc95da68e2e1d9eda6865aa1b3d3148 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 18 Nov 2021 00:36:47 +0700 Subject: math/big: realign struct fields on unit tests The following alignment reported and fixed by fieldaligment tool, float_test.go:103:13: struct with 16 pointer bytes could be 8 float_test.go:254:13: struct with 16 pointer bytes could be 8 big/float_test.go:302:13: struct with 32 pointer bytes could be 16 --- lib/math/big/float_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/math/big/float_test.go b/lib/math/big/float_test.go index 9876e7fc..94da2afe 100644 --- a/lib/math/big/float_test.go +++ b/lib/math/big/float_test.go @@ -101,8 +101,8 @@ func TestFloat_MulFloat64(t *testing.T) { ) cases := []struct { - g float64 exp string + g float64 }{{ g: 0, exp: "0", @@ -252,8 +252,8 @@ func TestFloat_String_fromString(t *testing.T) { func TestFloat_String_fromFloat(t *testing.T) { cases := []struct { - in float64 exp string + in float64 }{{ in: 0.00000000, exp: "0", @@ -300,8 +300,8 @@ func TestFloat_UnmarshalJSON(t *testing.T) { } cases := []struct { - in []byte exp *Float + in []byte }{{ in: []byte(`{}`), }, { -- cgit v1.3