From d2c192d81959100782e7f21d7b8ce603f241cc95 Mon Sep 17 00:00:00 2001 From: paste <147841049+pastc@users.noreply.github.com> Date: Sat, 9 Mar 2024 06:24:22 +0900 Subject: [PATCH] Minor: Rearange imports --- crash.go | 3 ++- crash_test.go | 6 +++--- dice_test.go | 3 ++- plinko.go | 3 ++- plinko_test.go | 3 ++- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/crash.go b/crash.go index c85421c..efd4a2f 100644 --- a/crash.go +++ b/crash.go @@ -1,9 +1,10 @@ package vero import ( - "github.com/pastc/vero/internal" "math" "strconv" + + "github.com/pastc/vero/internal" ) // houseEdge i.e, percentage that the house gets diff --git a/crash_test.go b/crash_test.go index f7829ca..3771e97 100644 --- a/crash_test.go +++ b/crash_test.go @@ -1,10 +1,10 @@ package vero import ( - "fmt" - "github.com/pastc/vero/internal" "strconv" "testing" + + "github.com/pastc/vero/internal" ) func TestCrash(t *testing.T) { @@ -25,7 +25,7 @@ func TestCrash(t *testing.T) { } for _, tt := range tests { - t.Run(fmt.Sprintf("%s", tt.serverSeed), func(t *testing.T) { + t.Run(tt.serverSeed, func(t *testing.T) { value, err := Crash(tt.serverSeed, houseEdge) if err != nil { t.Fatalf("got %v", err) diff --git a/dice_test.go b/dice_test.go index 44f3413..8d6f8f2 100644 --- a/dice_test.go +++ b/dice_test.go @@ -2,9 +2,10 @@ package vero import ( "fmt" - "github.com/pastc/vero/internal" "strconv" "testing" + + "github.com/pastc/vero/internal" ) func TestDice(t *testing.T) { diff --git a/plinko.go b/plinko.go index e7b127a..04865f0 100644 --- a/plinko.go +++ b/plinko.go @@ -1,9 +1,10 @@ package vero import ( - "github.com/pastc/vero/internal" "math" "strconv" + + "github.com/pastc/vero/internal" ) // Plinko generates the column number that the ball landed on diff --git a/plinko_test.go b/plinko_test.go index 436c330..3e671c8 100644 --- a/plinko_test.go +++ b/plinko_test.go @@ -2,9 +2,10 @@ package vero import ( "fmt" - "github.com/pastc/vero/internal" "strconv" "testing" + + "github.com/pastc/vero/internal" ) func TestPlinko(t *testing.T) {