Skip to content

Commit

Permalink
flac: update TestEncode to store FLAC file when content mismatch (com…
Browse files Browse the repository at this point in the history
…mented out for now)
  • Loading branch information
mewmew committed Oct 31, 2023
1 parent 44182fb commit 212a4f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ func TestEncode(t *testing.T) {
}
got := out.Bytes()
if !bytes.Equal(got, want) {
//if err := ioutil.WriteFile("/tmp/got.flac", got, 0o644); err != nil {
// panic(err)
//}
t.Fatalf("%q: content mismatch; expected % X, got % X", path, want, got)
}
})
Expand Down

0 comments on commit 212a4f1

Please sign in to comment.