We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 484badb commit 260afbcCopy full SHA for 260afbc
flag_test.go
@@ -1247,9 +1247,7 @@ func TestPrintDefaults(t *testing.T) {
1247
fs.PrintDefaults()
1248
got := buf.String()
1249
if got != defaultOutput {
1250
- fmt.Println("\n" + got)
1251
- fmt.Printf("\n" + defaultOutput)
1252
- t.Errorf("got %q want %q\n", got, defaultOutput)
+ t.Errorf("\n--- Got:\n%s--- Wanted:\n%s\n", got, defaultOutput)
1253
}
1254
1255
0 commit comments