Browse Source

Log output in test

master
maze 1 year ago
parent
commit
7da1fd373e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      scrub_test.go

+ 2
- 0
scrub_test.go View File

@ -15,6 +15,8 @@ func testScrubber(t *testing.T, s Scrubber, tests []testScrubberCase) {
t.Run(strings.SplitN(test.Want, "\n", 2)[0], func(it *testing.T) {
if result := s.Scrub(test.Test); result != test.Want {
it.Fatalf("expected %q, got %q", test.Want, result)
} else {
it.Log(result)
}
})
}


Loading…
Cancel
Save