aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/strconv/atoi_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/strconv/atoi_test.go b/src/strconv/atoi_test.go
index 867fa66a14..d7f8f25a29 100644
--- a/src/strconv/atoi_test.go
+++ b/src/strconv/atoi_test.go
@@ -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 {