summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-11-18 00:36:47 +0700
committerShulhan <ms@kilabit.info>2021-11-19 10:49:08 +0700
commit994f5ec88cc95da68e2e1d9eda6865aa1b3d3148 (patch)
tree22645f12bfcd199c939719e96d1d634cde911458
parentf542979c53b8f16b6a9904e6ea5b30963ef88852 (diff)
downloadpakakeh.go-994f5ec88cc95da68e2e1d9eda6865aa1b3d3148.tar.xz
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
-rw-r--r--lib/math/big/float_test.go6
1 files 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(`{}`),
}, {