]> Cypherpunks repositories - gostls13.git/commit
strconv: add atoi tests for uncommon bases and syntax errors
authorMartin Möhrmann <martisch@uos.de>
Thu, 8 Jan 2015 01:18:16 +0000 (02:18 +0100)
committerRobert Griesemer <gri@golang.org>
Thu, 8 Jan 2015 16:51:47 +0000 (16:51 +0000)
commit878fa886a61c6536b4151c1f13a494434e6c6c82
treef17d0272fb40236690061e10d6a8234932f876ae
parentd00024bd6097dac81352400e4ee228b6bc613455
strconv: add atoi tests for uncommon bases and syntax errors

Edge cases like base 2 and 36 conversions are now covered.
Many tests are mirrored from the itoa tests.

Added more test cases for syntax errors.

Change-Id: Iad8b2fb4854f898c2bfa18cdeb0cb4a758fcfc2e
Reviewed-on: https://go-review.googlesource.com/2463
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/strconv/atoi_test.go