mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
c851827c68
commit
17b3b98796
3 changed files with 6 additions and 6 deletions
|
|
@ -5,9 +5,9 @@
|
||||||
package strconv_test
|
package strconv_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
. "internal/strconv"
|
||||||
"math"
|
"math"
|
||||||
"math/cmplx"
|
"math/cmplx"
|
||||||
. "internal/strconv"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -194,7 +194,7 @@ func TestParseComplex(t *testing.T) {
|
||||||
if complex128(complex64(test.out)) == test.out {
|
if complex128(complex64(test.out)) == test.out {
|
||||||
c, e := ParseComplex(test.in, 64)
|
c, e := ParseComplex(test.in, 64)
|
||||||
c64 := complex64(c)
|
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)
|
t.Errorf("ParseComplex(%s, 64) = %v, %v, want %v, %v", test.in, c, e, test.out, test.err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
package strconv_test
|
package strconv_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
. "internal/strconv"
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"reflect"
|
"reflect"
|
||||||
. "internal/strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ package strconv_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
|
||||||
. "internal/strconv"
|
. "internal/strconv"
|
||||||
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -433,7 +433,7 @@ func TestAtoi(t *testing.T) {
|
||||||
for i := range parseInt32Tests {
|
for i := range parseInt32Tests {
|
||||||
test := &parseInt32Tests[i]
|
test := &parseInt32Tests[i]
|
||||||
out, err := Atoi(test.in)
|
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)
|
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 {
|
type parseErrorTest struct {
|
||||||
arg int
|
arg int
|
||||||
err error
|
err error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue