internal/strconv: go fmt

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>
This commit is contained in:
Michael Pratt 2025-11-20 16:25:40 -05:00
parent c851827c68
commit 17b3b98796
3 changed files with 6 additions and 6 deletions

View 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)
}
}

View file

@ -5,10 +5,10 @@
package strconv_test
import (
. "internal/strconv"
"math"
"math/rand"
"reflect"
. "internal/strconv"
"strings"
"sync"
"testing"

View 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
}