Fix incorrect diff error messages in tests

This commit is contained in:
Joël Stemmer
2022-03-31 23:08:54 +01:00
parent 044e2fc120
commit 125573d6fc
3 changed files with 6 additions and 6 deletions

View File

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