@@ -213,7 +213,7 @@ func TestLargeByteWrites(t *testing.T) {
213
213
func TestLargeStringReads (t * testing.T ) {
214
214
var buf Buffer
215
215
for i := 3 ; i < 30 ; i += 3 {
216
- s := fillString (t , "TestLargeReads (1)" , & buf , "" , 5 , testString [0 :len (testString )/ i ])
216
+ s := fillString (t , "TestLargeReads (1)" , & buf , "" , 5 , testString [:len (testString )/ i ])
217
217
empty (t , "TestLargeReads (2)" , & buf , s , make ([]byte , len (testString )))
218
218
}
219
219
check (t , "TestLargeStringReads (3)" , & buf , "" )
@@ -222,7 +222,7 @@ func TestLargeStringReads(t *testing.T) {
222
222
func TestLargeByteReads (t * testing.T ) {
223
223
var buf Buffer
224
224
for i := 3 ; i < 30 ; i += 3 {
225
- s := fillBytes (t , "TestLargeReads (1)" , & buf , "" , 5 , testBytes [0 :len (testBytes )/ i ])
225
+ s := fillBytes (t , "TestLargeReads (1)" , & buf , "" , 5 , testBytes [:len (testBytes )/ i ])
226
226
empty (t , "TestLargeReads (2)" , & buf , s , make ([]byte , len (testString )))
227
227
}
228
228
check (t , "TestLargeByteReads (3)" , & buf , "" )
@@ -274,7 +274,7 @@ func TestNil(t *testing.T) {
274
274
func TestReadFrom (t * testing.T ) {
275
275
var buf Buffer
276
276
for i := 3 ; i < 30 ; i += 3 {
277
- s := fillBytes (t , "TestReadFrom (1)" , & buf , "" , 5 , testBytes [0 :len (testBytes )/ i ])
277
+ s := fillBytes (t , "TestReadFrom (1)" , & buf , "" , 5 , testBytes [:len (testBytes )/ i ])
278
278
var b Buffer
279
279
b .ReadFrom (& buf )
280
280
empty (t , "TestReadFrom (2)" , & b , s , make ([]byte , len (testString )))
@@ -337,7 +337,7 @@ func TestReadFromNegativeReader(t *testing.T) {
337
337
func TestWriteTo (t * testing.T ) {
338
338
var buf Buffer
339
339
for i := 3 ; i < 30 ; i += 3 {
340
- s := fillBytes (t , "TestWriteTo (1)" , & buf , "" , 5 , testBytes [0 :len (testBytes )/ i ])
340
+ s := fillBytes (t , "TestWriteTo (1)" , & buf , "" , 5 , testBytes [:len (testBytes )/ i ])
341
341
var b Buffer
342
342
buf .WriteTo (& b )
343
343
empty (t , "TestWriteTo (2)" , & b , s , make ([]byte , len (testString )))
0 commit comments