Fix cmp.Diff argument order in tests

This commit is contained in:
Joël Stemmer
2022-05-07 12:59:39 +01:00
parent 7c195be87f
commit df7394c77c
4 changed files with 16 additions and 15 deletions

View File

@ -79,7 +79,7 @@ func testRun(inputFile, reportFile string, config Config, t *testing.T) {
t.Fatal(err)
}
if diff := cmp.Diff(output.String(), string(wantReport)); diff != "" {
if diff := cmp.Diff(string(wantReport), output.String()); diff != "" {
t.Errorf("Unexpected report diff (-want, +got):\n%v", diff)
}
}