mirror of
https://github.com/golang/go
synced 2024-11-07 15:36:23 -07:00
strconv: add test cases with characters less than '0'
This commit is contained in:
parent
9f834a559c
commit
e0a28f4236
@ -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
Block a user