Skip to content

Commit

Permalink
modify Repeat tests fail message
Browse files Browse the repository at this point in the history
  • Loading branch information
TapirLiu committed May 2, 2024
1 parent 31d7cf6 commit 338bbfc
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 @@ -1259,7 +1259,7 @@ func TestRepeatCatchesOverflow(t *testing.T) {
}

if err == nil || !strings.Contains(err.Error(), tt.errStr) {
t.Errorf("%s#%d expected %q got %q", prefix, i, tt.errStr, err)
t.Errorf("%s#%d got %q want %q", prefix, i, err, tt.errStr)
}
}
}
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 @@ -1187,7 +1187,7 @@ func TestRepeatCatchesOverflow(t *testing.T) {
}

if err == nil || !Contains(err.Error(), tt.errStr) {
t.Errorf("%s#%d expected %q got %q", prefix, i, tt.errStr, err)
t.Errorf("%s#%d got %q want %q", prefix, i, err, tt.errStr)
}
}
}
Expand Down

0 comments on commit 338bbfc

Please sign in to comment.