1
0
mirror of https://github.com/golang/go synced 2024-11-07 15:46:23 -07:00

strconv: add test cases with characters less than '0'

This commit is contained in:
Anuraag Agrawal 2023-02-17 14:32:56 +09:00
parent 9f834a559c
commit e0a28f4236

View File

@ -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 {