Skip to content

Commit 7f186e0

Browse files
committed
tweak error messages in the tests of window manager
1 parent a18d1bc commit 7f186e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

window/manager_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestManagerOpenEmpty(t *testing.T) {
3939
t.Errorf("Length should be %d but got %d", int64(0), ws.Length)
4040
}
4141
if !strings.HasPrefix(string(ws.Bytes), "\x00") {
42-
t.Errorf("Bytes should starts with %q but got %q", "\x00", string(ws.Bytes))
42+
t.Errorf("Bytes should start with %q but got %q", "\x00", string(ws.Bytes))
4343
}
4444
if err != nil {
4545
t.Errorf("err should be nil but got: %v", err)
@@ -89,7 +89,7 @@ func TestManagerOpenStates(t *testing.T) {
8989
t.Errorf("Length should be %d but got %d", int64(41), ws.Length)
9090
}
9191
if !strings.HasPrefix(string(ws.Bytes), str) {
92-
t.Errorf("Bytes should starts with %q but got %q", str, string(ws.Bytes))
92+
t.Errorf("Bytes should start with %q but got %q", str, string(ws.Bytes))
9393
}
9494
if err != nil {
9595
t.Errorf("err should be nil but got: %v", err)
@@ -144,7 +144,7 @@ func TestManagerOpenNonExistsWrite(t *testing.T) {
144144
t.Errorf("Length should be %d but got %d", int64(13), ws.Length)
145145
}
146146
if !strings.HasPrefix(string(ws.Bytes), str) {
147-
t.Errorf("Bytes should starts with %q but got %q", str, string(ws.Bytes))
147+
t.Errorf("Bytes should start with %q but got %q", str, string(ws.Bytes))
148148
}
149149
if err != nil {
150150
t.Errorf("err should be nil but got: %v", err)

0 commit comments

Comments
 (0)