Skip to content

Commit

Permalink
add comments for Repeat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TapirLiu committed Apr 29, 2024
1 parent ea39d1f commit 363faf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bytes/bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ func TestRepeatCatchesOverflow(t *testing.T) {
4: {"-", -1, "negative"},
5: {"--", -102, "negative"},
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
7: {"-", maxInt, "out of"},
7: {"-", maxInt, " out of "}, // "out of range" or "out of memory", depending on OS
}

for i, tt := range tests {
Expand Down
2 changes: 1 addition & 1 deletion src/strings/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ func TestRepeatCatchesOverflow(t *testing.T) {
4: {"-", -1, "negative"},
5: {"--", -102, "negative"},
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
7: {"-", maxInt, "out of"},
7: {"-", maxInt, " out of "}, // "out of range" or "out of memory", depending on OS
}

for i, tt := range tests {
Expand Down

0 comments on commit 363faf8

Please sign in to comment.