]> Cypherpunks repositories - gostls13.git/commit
strconv: make malloc tests more reliable
authorDave Cheney <dave@cheney.net>
Sat, 14 Apr 2012 11:34:08 +0000 (21:34 +1000)
committerDave Cheney <dave@cheney.net>
Sat, 14 Apr 2012 11:34:08 +0000 (21:34 +1000)
commit84ef97b59c89b7d9fdc04a1a8a438cd3257bf521
tree60ac53070ba88deb4bbc5c64e650727b2ebba2f2
parent0e596024c203b27e4940fba0844a58f4e3abc989
strconv: make malloc tests more reliable

Fixes #3495.

I adapted fmt.TestCountMallocs to fix the
existing tests. As the resulting tests did not
appear to belong to either itoa or ftoa I moved
them into their own file.

R=bradfitz, fullung
CC=golang-dev
https://golang.org/cl/5985072
src/pkg/strconv/ftoa_test.go
src/pkg/strconv/itoa_test.go
src/pkg/strconv/strconv_test.go [new file with mode: 0644]