Archived
tests: messagediff argument order should be expected, actual
So that the diff describes the changes that happened in actual as compared to expected. The opposite is confusing.
This commit is contained in:
1 parent
78120bd989
commit
c439c543d0
4 files changed
+23
-23
No files matched your search
@@ -120,7 +120,7 @@ func TestWalk(t *testing.T) {
|
||||
sort.Sort(fileList(tmp))
|
||||
files := fileList(tmp).testfiles()
|
||||
|
||||
if diff, equal := messagediff.PrettyDiff(files, testdata); !equal {
|
||||
if diff, equal := messagediff.PrettyDiff(testdata, files); !equal {
|
||||
t.Errorf("Walk returned unexpected data. Diff:\n%s", diff)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user