Skip to content

Commit

Permalink
fix test: check verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 29, 2023
1 parent 97dbf67 commit a3e3cd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haiku_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ func testMatch(t *testing.T, filename string, rules []int, judge bool) {
if strings.HasPrefix(text, "#") {
continue
}
if MatchWithOpt(text, rules, &Opt{Debug: true}) != judge {
t.Logf("%s (%v:%v)", text, filename, judge)
if MatchWithOpt(text, rules, &Opt{Debug: testing.Verbose()}) != judge {
t.Fatalf("%q for %q must be %v", text, filename, rules)
}
}
Expand Down

0 comments on commit a3e3cd3

Please sign in to comment.