]> Cypherpunks repositories - gostls13.git/commit
strconv: use Quote to escape the input string for failed conversion errors
authorMatt Brown <mdbrown@google.com>
Thu, 28 Feb 2013 18:08:05 +0000 (10:08 -0800)
committerRob Pike <r@golang.org>
Thu, 28 Feb 2013 18:08:05 +0000 (10:08 -0800)
commit1300fb54491496ac19b33c5ef3b4e92fbe89b4e4
tree07a16c2b020fda7e1a3f02eadcd423d8688696e3
parentee95c95ebd32c7d2c75d81d4d5ede98098669d2a
strconv: use Quote to escape the input string for failed conversion errors

This reveals the presence of control and non-printable characters in the
errors returned by the Parse functions.  Also add unit tests for NumError.

R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/7393075
src/pkg/strconv/atof_test.go
src/pkg/strconv/atoi.go
src/pkg/strconv/atoi_test.go