Commit 042c0f5
committed
Fix off-by-one errors in HunkMatcher diff remap tests
Two tests passed the wrong oldLine value (off by +1), causing
the remapped result to be 1 higher than expected:
- parseDiffAndRemap with multiple hunks: 6→5
- parseDiffAndRemap with single line hunk: 7→6
Also remove diagnostic CI step no longer needed.
https://claude.ai/code/session_015LpmjAt17XD582hZ9TPLCv1 parent 9028a18 commit 042c0f5
File tree
2 files changed
+2
-16
lines changed- .github/workflows
- review-plugin/src/test/kotlin/com/reviewplugin/anchor
2 files changed
+2
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments