@@ -46,7 +46,7 @@ func TestIsValidFile(t *testing.T) {
46
46
}
47
47
48
48
if res := isValidFile (file , fixtureExtensions ); res != tc .Expected {
49
- t .Errorf ("want: %b , got: %b " , tc .Expected , res )
49
+ t .Errorf ("want: %t , got: %t " , tc .Expected , res )
50
50
}
51
51
}
52
52
}
@@ -86,7 +86,7 @@ func TestRunMultiplePaths(t *testing.T) {
86
86
t .Errorf ("unexpected error: %s" , err )
87
87
}
88
88
if stdout .String () != expectedOut .String () {
89
- t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut , stdout )
89
+ t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut . String () , stdout . String () )
90
90
}
91
91
}
92
92
@@ -132,7 +132,7 @@ func TestRunSubDirectories(t *testing.T) {
132
132
t .Errorf ("unexpected error: %s" , err )
133
133
}
134
134
if stdout .String () != expectedOut .String () {
135
- t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut , stdout )
135
+ t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut . String () , stdout . String () )
136
136
}
137
137
}
138
138
@@ -161,7 +161,7 @@ func TestRunStdin(t *testing.T) {
161
161
t .Errorf ("unexpected error: %s" , err )
162
162
}
163
163
if ! bytes .Equal (stdout .Bytes (), expectedOut .Bytes ()) {
164
- t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut , stdout )
164
+ t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut . String () , stdout . String () )
165
165
}
166
166
}
167
167
@@ -242,7 +242,7 @@ func TestRunNoOptions(t *testing.T) {
242
242
t .Errorf ("unexpected error: %s" , err )
243
243
}
244
244
if stdout .String () != expectedOut .String () {
245
- t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut , stdout )
245
+ t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut . String () , stdout . String () )
246
246
}
247
247
}
248
248
@@ -274,7 +274,7 @@ func TestRunList(t *testing.T) {
274
274
t .Errorf ("unexpected error: %s" , err )
275
275
}
276
276
if stdout .String () != expectedOut .String () {
277
- t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut , stdout )
277
+ t .Errorf ("stdout want:\n %s\n got:\n %s" , expectedOut . String () , stdout . String () )
278
278
}
279
279
}
280
280
0 commit comments