@@ -66,7 +66,7 @@ func TestFixedBufferString(t *testing.T) {
6666
6767 out := buf .String ()
6868 if out != "helloworld" {
69- t .Fatalf (" expected output to be \ " helloworld\ " , got %q" , out )
69+ t .Fatalf (` expected output to be "helloworld", got %q` , out )
7070 }
7171
7272 // read 5 bytes
@@ -76,7 +76,7 @@ func TestFixedBufferString(t *testing.T) {
7676 // test that fixedBuffer.String() only returns the part that hasn't been read
7777 out = buf .String ()
7878 if out != "world" {
79- t .Fatalf (" expected output to be \ " world\ " , got %q" , out )
79+ t .Fatalf (` expected output to be "world", got %q` , out )
8080 }
8181}
8282
@@ -92,7 +92,7 @@ func TestFixedBufferWrite(t *testing.T) {
9292 }
9393
9494 if string (buf .buf [:5 ]) != "hello" {
95- t .Fatalf (" expected \ " hello\ " , got %q" , string (buf .buf [:5 ]))
95+ t .Fatalf (` expected "hello", got %q` , string (buf .buf [:5 ]))
9696 }
9797
9898 n , err = buf .Write (bytes .Repeat ([]byte {1 }, 64 ))
@@ -121,7 +121,7 @@ func TestFixedBufferRead(t *testing.T) {
121121 }
122122
123123 if string (b ) != "hello" {
124- t .Fatalf (" expected \ " hello\ " , got %q" , string (b ))
124+ t .Fatalf (` expected "hello", got %q` , string (b ))
125125 }
126126
127127 n , err = buf .Read (b )
@@ -134,7 +134,7 @@ func TestFixedBufferRead(t *testing.T) {
134134 }
135135
136136 if string (b ) != " worl" {
137- t .Fatalf (" expected \ " worl\ " , got %s" , string (b ))
137+ t .Fatalf (` expected " worl", got %s` , string (b ))
138138 }
139139
140140 b = b [:1 ]
@@ -148,6 +148,6 @@ func TestFixedBufferRead(t *testing.T) {
148148 }
149149
150150 if string (b ) != "d" {
151- t .Fatalf (" expected \" d \ " , got %s" , string (b ))
151+ t .Fatalf (` expected "d ", got %s` , string (b ))
152152 }
153153}
0 commit comments