Add diff to error report when tests fail
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
This commit is contained in:
parent
c7595323bc
commit
83bde78a85
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func testWriter(t *testing.T, newWriter func() Writer, ext string) {
|
|||
if err != nil {
|
||||
t.Fatalf("%s\n got error: %s", path, err)
|
||||
} else if actual != expected {
|
||||
t.Fatalf("%s:\n%s'", path, "")
|
||||
t.Fatalf("%s:\n%s'", path, diff(actual, expected))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue