diff options
| author | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
| commit | f2b5a07453277de6bc500dc283799441cc375239 (patch) | |
| tree | 2c5fdc55fd72274b49b5eff68736ff3075389b3d /src/pkg/container | |
| parent | 0849944694543a3446da4b1fa0c3d314781ced14 (diff) | |
| download | go-f2b5a07453277de6bc500dc283799441cc375239.tar.xz | |
delete float, complex - code changes
also:
cmplx -> complex
float64(1.0) -> 1.0
float64(1) -> 1.0
R=gri, r, gri1, r2
CC=golang-dev
https://golang.org/cl/3991043
Diffstat (limited to 'src/pkg/container')
| -rw-r--r-- | src/pkg/container/vector/numbers_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/container/vector/numbers_test.go b/src/pkg/container/vector/numbers_test.go index 93335ca60f..d540ace050 100644 --- a/src/pkg/container/vector/numbers_test.go +++ b/src/pkg/container/vector/numbers_test.go @@ -46,7 +46,7 @@ func TestVectorNums(t *testing.T) { v.Resize(0, 0) runtime.GC() n := m.Alloc - m0.Alloc - t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN) + t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN) } @@ -64,7 +64,7 @@ func TestIntVectorNums(t *testing.T) { v.Resize(0, 0) runtime.GC() n := m.Alloc - m0.Alloc - t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN) + t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN) } @@ -82,7 +82,7 @@ func TestStringVectorNums(t *testing.T) { v.Resize(0, 0) runtime.GC() n := m.Alloc - m0.Alloc - t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN) + t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN) } |
