aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'flag_test.go')
-rw-r--r--flag_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/flag_test.go b/flag_test.go
index 09249c8..172d49f 100644
--- a/flag_test.go
+++ b/flag_test.go
@@ -335,7 +335,7 @@ func testParse(f *FlagSet, t *testing.T) {
func testParseAll(f *FlagSet, t *testing.T) {
if f.Parsed() {
- fmt.Errorf("f.Parse() = true before Parse")
+ t.Error("f.Parse() = true before Parse")
}
f.BoolP("boola", "a", false, "bool value")
f.BoolP("boolb", "b", false, "bool2 value")
@@ -374,7 +374,7 @@ func testParseAll(f *FlagSet, t *testing.T) {
return nil
}
if err := f.ParseAll(args, store); err != nil {
- t.Errorf("expected no error, got ", err)
+ t.Errorf("expected no error, got %s", err)
}
if !f.Parsed() {
t.Errorf("f.Parse() = false after Parse")