diff options
Diffstat (limited to 'flag_test.go')
| -rw-r--r-- | flag_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/flag_test.go b/flag_test.go index 58a5d25..9faaba4 100644 --- a/flag_test.go +++ b/flag_test.go @@ -1134,7 +1134,6 @@ func TestMultipleNormalizeFlagNameInvocations(t *testing.T) { } } -// func TestHiddenFlagInUsage(t *testing.T) { f := NewFlagSet("bob", ContinueOnError) f.Bool("secretFlag", true, "shhh") @@ -1149,7 +1148,6 @@ func TestHiddenFlagInUsage(t *testing.T) { } } -// func TestHiddenFlagUsage(t *testing.T) { f := NewFlagSet("bob", ContinueOnError) f.Bool("secretFlag", true, "shhh") @@ -1238,8 +1236,8 @@ func TestPrintDefaults(t *testing.T) { fs.PrintDefaults() got := buf.String() if got != defaultOutput { - fmt.Println("\n" + got) - fmt.Println("\n" + defaultOutput) + fmt.Print("\n" + got + "\n") + fmt.Print("\n" + defaultOutput + "\n") t.Errorf("got %q want %q\n", got, defaultOutput) } } |
