Skip to content
This repository has been archived by the owner on Sep 1, 2018. It is now read-only.

Commit

Permalink
Improve readability of failed test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Apr 6, 2017
1 parent 0e7ff92 commit 158ea12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfacer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func doTestLines(t *testing.T, name string, want []string, args ...string) {
t.Fatalf("Did not want error in %s:\n%v", name, err)
}
if !reflect.DeepEqual(want, got) {
t.Fatalf("Output mismatch in %s:\nwant: %v\ngot: %v",
name, want, got)
t.Fatalf("Output mismatch in %s:\nwant:\n%s\ngot:\n%s",
name, strings.Join(want, "\n"), strings.Join(got, "\n"))
}
}

Expand Down

0 comments on commit 158ea12

Please sign in to comment.