Commit edfbb80
committed
Attempt at fixing unit tests
This fixes some of the tests by limiting the output of the ClangFormat
helper function to between `line1` and `line2`. This is similar to what
`clang_format#format` now returns.
There are two problems left:
1. the number of lines returned by `clang_format#format` might not be
equal to `line2 - line1`, i.e when it splits a line.
2. `clang_format#replace` now handles reidenting the lines correctly, so
any tests that format a line that is indented will fail.
Ref: #611 parent 3131571 commit edfbb80
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments