]> Cypherpunks repositories - gostls13.git/commit
strconv/itoa: add test to generate the longest output string possible by formatBits
authorMartin Möhrmann <martisch@uos.de>
Sat, 27 Dec 2014 10:53:09 +0000 (11:53 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 27 Dec 2014 22:35:08 +0000 (22:35 +0000)
commit0668b595b604a4bd3e5327bd14ffd71cfa7dbc68
tree07747deb77d8bd726f8a5f3af109a56c216908da
parent09d369f8dd51db09c4dfaa7635ecb4e71a30782a
strconv/itoa: add test to generate the longest output string possible by formatBits

The new test case produces the longest string representation possible and thereby uses
all of the 65 bytes in the buffer array used by the formatBits function.

Change-Id: I11320c4de56ced5ff098b7e37f1be08e456573e2
Reviewed-on: https://go-review.googlesource.com/2108
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/strconv/itoa_test.go