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>
package strconv_test
import (
+ . "internal/strconv"
"math"
"math/cmplx"
- . "internal/strconv"
"testing"
)
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)
}
}
package strconv_test
import (
+ . "internal/strconv"
"math"
"math/rand"
"reflect"
- . "internal/strconv"
"strings"
"sync"
"testing"
import (
"fmt"
- "reflect"
. "internal/strconv"
+ "reflect"
"testing"
)
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)
}
}
}
type parseErrorTest struct {
- arg int
+ arg int
err error
}