]> Cypherpunks repositories - gostls13.git/commitdiff
internal/strconv: go fmt
authorMichael Pratt <mpratt@google.com>
Thu, 20 Nov 2025 21:25:40 +0000 (16:25 -0500)
committerMichael Pratt <mpratt@google.com>
Fri, 21 Nov 2025 18:51:44 +0000 (10:51 -0800)
Change-Id: I6a6a636ccd140dc5318f45bb2dc7236a5a43b1cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/722523
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/internal/strconv/atoc_test.go
src/internal/strconv/atof_test.go
src/internal/strconv/atoi_test.go

index 0a7741a4ccf74ba244b74c1da6116370da306846..f1bde2939ae45836b59510649ca9c4ccd4237300 100644 (file)
@@ -5,9 +5,9 @@
 package strconv_test
 
 import (
+       . "internal/strconv"
        "math"
        "math/cmplx"
-       . "internal/strconv"
        "testing"
 )
 
@@ -194,7 +194,7 @@ func TestParseComplex(t *testing.T) {
                if complex128(complex64(test.out)) == test.out {
                        c, e := ParseComplex(test.in, 64)
                        c64 := complex64(c)
-                       if !sameComplex(complex128(c64) , test.out) || e != test.err {
+                       if !sameComplex(complex128(c64), test.out) || e != test.err {
                                t.Errorf("ParseComplex(%s, 64) = %v, %v, want %v, %v", test.in, c, e, test.out, test.err)
                        }
                }
index dd0b4dd6effc419aa8fd4b780569e542e158bbb8..eeb4656efbcc1a18f60365899c7a01df5a016104 100644 (file)
@@ -5,10 +5,10 @@
 package strconv_test
 
 import (
+       . "internal/strconv"
        "math"
        "math/rand"
        "reflect"
-       . "internal/strconv"
        "strings"
        "sync"
        "testing"
index e8f123ea5e500b00bb8083fe0cfd0e7a287d7a9f..c9c9a4e4e9f74bda7029d8f2a1e5491344c1b6d9 100644 (file)
@@ -6,8 +6,8 @@ package strconv_test
 
 import (
        "fmt"
-       "reflect"
        . "internal/strconv"
+       "reflect"
        "testing"
 )
 
@@ -433,7 +433,7 @@ func TestAtoi(t *testing.T) {
                for i := range parseInt32Tests {
                        test := &parseInt32Tests[i]
                        out, err := Atoi(test.in)
-                       if out !=int(test.out) || err != test.err {
+                       if out != int(test.out) || err != test.err {
                                t.Errorf("Atoi(%q) = %v, %v, want %v, %v", test.in, out, err, test.out, test.err)
                        }
                }
@@ -449,7 +449,7 @@ func TestAtoi(t *testing.T) {
 }
 
 type parseErrorTest struct {
-       arg     int
+       arg int
        err error
 }