mirror of https://github.com/golang/go.git
strconv: add Atoi test cases with characters less than '0'
Change-Id: I35c0fe4e7e11b694ef07687d5e0532a2ab9ba213
GitHub-Last-Rev: e0a28f4236
GitHub-Pull-Request: golang/go#58575
Reviewed-on: https://go-review.googlesource.com/c/go/+/469035
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
99bc53f5e8
commit
7f59bea53c
|
|
@ -164,6 +164,7 @@ var parseInt64Tests = []parseInt64Test{
|
|||
{"_12345", 0, ErrSyntax},
|
||||
{"1__2345", 0, ErrSyntax},
|
||||
{"12345_", 0, ErrSyntax},
|
||||
{"123%45", 0, ErrSyntax},
|
||||
}
|
||||
|
||||
type parseInt64BaseTest struct {
|
||||
|
|
@ -302,6 +303,7 @@ var parseInt32Tests = []parseInt32Test{
|
|||
{"_12345", 0, ErrSyntax},
|
||||
{"1__2345", 0, ErrSyntax},
|
||||
{"12345_", 0, ErrSyntax},
|
||||
{"123%45", 0, ErrSyntax},
|
||||
}
|
||||
|
||||
type numErrorTest struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue