UI test output should be patch
compatible
#41948
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
@eddyb made the good point that it'd be nice if the diff produced by UI tests were something one could easily feed into
patch
. Also, the role of-
as "expected" and+
as "actual" is correct, but the ordering is backwards from what diff uses. It'd be nice to change the call to diff so that instead of doingdiff_lines(actual, expected)
it diddiff_lines(expected, actual)
(and then making "left" print-
etc).(Another question, can we add unit tests here somehow?)
cc @cengizio
The text was updated successfully, but these errors were encountered: