Commit a1e405f
authored
Add a regression test for an idempotency bug. (#1752)
Idempotency bugs where the formatter produces another change if you
re-run it on its own output are like Whac-a-mole. We don't have a
systematic way to prevent them, so I just fix them as they come up.
We do *test* for them systematically now. Every single test is formatted
twice, again on the output of the first format to ensure that what we
test is at least idempotent.
This one appears to no longer be an issue because the test is already
passing. Probably got fixed in some of the changes around comment
handling.
This just adds a regression test.
Close #1625.1 parent 7278eff commit a1e405f
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments