aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/bytes_test.go
diff options
context:
space:
mode:
authorjjpinto <jorgpinto@gmail.com>2025-12-23 18:11:53 +0000
committerGopher Robot <gobot@golang.org>2025-12-23 15:54:14 -0800
commita23d1a4ebe5ca1f4964ad51a92d99edf5a95d530 (patch)
treee1e8cc36b1277429d05b17c0952c731664a66ae8 /src/bytes/bytes_test.go
parent866e461b9689d03dbbf2df19b86cace21270865b (diff)
downloadgo-a23d1a4ebe5ca1f4964ad51a92d99edf5a95d530.tar.xz
bytes: improve consistency in split test messages
This change improves consistency in the error messages used by TestSplit and TestSplitAfter in bytes_test.go Change-Id: Idc4e77a516037ce17cbb1bdffe3ac00bcde5de42 GitHub-Last-Rev: 8c4a35186851004251e8eee71c88ca1c822851c1 GitHub-Pull-Request: golang/go#76970 Reviewed-on: https://go-review.googlesource.com/c/go/+/732300 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Jorropo <jorropo.pgm@gmail.com> Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Diffstat (limited to 'src/bytes/bytes_test.go')
-rw-r--r--src/bytes/bytes_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytes/bytes_test.go b/src/bytes/bytes_test.go
index 9547ede312..891aef2c8b 100644
--- a/src/bytes/bytes_test.go
+++ b/src/bytes/bytes_test.go
@@ -961,7 +961,7 @@ func TestSplit(t *testing.T) {
if tt.n < 0 {
b := sliceOfString(Split([]byte(tt.s), []byte(tt.sep)))
if !slices.Equal(result, b) {
- t.Errorf("Split disagrees withSplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
+ t.Errorf("Split disagrees with SplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
}
}
if len(a) > 0 {
@@ -1023,7 +1023,7 @@ func TestSplitAfter(t *testing.T) {
if tt.n < 0 {
b := sliceOfString(SplitAfter([]byte(tt.s), []byte(tt.sep)))
if !slices.Equal(result, b) {
- t.Errorf("SplitAfter disagrees withSplitAfterN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
+ t.Errorf("SplitAfter disagrees with SplitAfterN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
}
}
}