diff options
| author | Russ Cox <rsc@golang.org> | 2009-01-15 17:22:17 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-01-15 17:22:17 -0800 |
| commit | 8a7cbadbbe9768ccd7480bb11e35454e39ef2bdd (patch) | |
| tree | 14ada4cb02c131a6c1a3539acdae6c729b3fb307 /test | |
| parent | 74a60ed08a2581279bef3cccfb9043196c865f80 (diff) | |
| download | go-8a7cbadbbe9768ccd7480bb11e35454e39ef2bdd.tar.xz | |
convert strconv
R=r
DELTA=568 (0 added, 9 deleted, 559 changed)
OCL=22898
CL=22901
Diffstat (limited to 'test')
| -rw-r--r-- | test/chan/goroutines.go | 2 | ||||
| -rw-r--r-- | test/fixedbugs/bug120.go | 10 | ||||
| -rw-r--r-- | test/mallocrep1.go | 2 | ||||
| -rw-r--r-- | test/map.go | 14 |
4 files changed, 14 insertions, 14 deletions
diff --git a/test/chan/goroutines.go b/test/chan/goroutines.go index db76a399c2..104b247f36 100644 --- a/test/chan/goroutines.go +++ b/test/chan/goroutines.go @@ -22,7 +22,7 @@ func main() { var n = 10000; if sys.argc() > 1 { var err *os.Error; - n, err = strconv.atoi(sys.argv(1)); + n, err = strconv.Atoi(sys.argv(1)); if err != nil { print("bad arg\n"); sys.exit(1); diff --git a/test/fixedbugs/bug120.go b/test/fixedbugs/bug120.go index 421f1db9ae..28c4359258 100644 --- a/test/fixedbugs/bug120.go +++ b/test/fixedbugs/bug120.go @@ -40,15 +40,15 @@ func main() { ok := true; for i := 0; i < len(tests); i++ { t := tests[i]; - v := strconv.ftoa64(t.f, 'g', -1); + v := strconv.Ftoa64(t.f, 'g', -1); if v != t.out { println("Bad float64 const:", t.in, "want", t.out, "got", v); - x, err := strconv.atof64(t.out); + x, err := strconv.Atof64(t.out); if err != nil { - panicln("bug120: strconv.atof64", t.out); + panicln("bug120: strconv.Atof64", t.out); } - println("\twant exact:", strconv.ftoa64(x, 'g', 1000)); - println("\tgot exact: ", strconv.ftoa64(t.f, 'g', 1000)); + println("\twant exact:", strconv.Ftoa64(x, 'g', 1000)); + println("\tgot exact: ", strconv.Ftoa64(t.f, 'g', 1000)); ok = false; } } diff --git a/test/mallocrep1.go b/test/mallocrep1.go index 8c90ee94e4..5ae742b4c7 100644 --- a/test/mallocrep1.go +++ b/test/mallocrep1.go @@ -87,7 +87,7 @@ func AllocAndFree(size, count int) { } func atoi(s string) int { - i, xx1 := strconv.atoi(s); + i, xx1 := strconv.Atoi(s); return i } diff --git a/test/map.go b/test/map.go index 21d4fd773d..51c6fe5f5b 100644 --- a/test/map.go +++ b/test/map.go @@ -61,8 +61,8 @@ func main() { var apT [2*count]*T; for i := 0; i < count; i++ { - s := strconv.itoa(i); - s10 := strconv.itoa(i*10); + s := strconv.Itoa(i); + s10 := strconv.Itoa(i*10); f := float(i); t := T{int64(i),f}; apT[i] = new(T); @@ -137,8 +137,8 @@ func main() { // test construction directly for i := 0; i < count; i++ { - s := strconv.itoa(i); - s10 := strconv.itoa(i*10); + s := strconv.Itoa(i); + s10 := strconv.Itoa(i*10); f := float(i); t := T{int64(i), f}; // BUG m := M(i, i+1); @@ -191,7 +191,7 @@ func main() { // test existence with tuple check // failed lookups yield a false value for the boolean. for i := 0; i < count; i++ { - s := strconv.itoa(i); + s := strconv.Itoa(i); f := float(i); t := T{int64(i), f}; { @@ -329,7 +329,7 @@ func main() { // test nonexistence with tuple check // failed lookups yield a false value for the boolean. for i := count; i < 2*count; i++ { - s := strconv.itoa(i); + s := strconv.Itoa(i); f := float(i); t := T{int64(i),f}; { @@ -467,7 +467,7 @@ func main() { // tests for structured map element updates for i := 0; i < count; i++ { - s := strconv.itoa(i); + s := strconv.Itoa(i); mspa[s][i % 2] = "deleted"; if mspa[s][i % 2] != "deleted" { fmt.Printf("update mspa[%s][%d] = %s\n", s, i %2, mspa[s][i % 2]); |
