fix: get correct line numbering of old and new lines

track context of old and new lines separately to
get proper line numbers relative to old and
new version of a file

Closes GitHub #236
This commit is contained in:
Robert Alonso
2024-11-12 03:26:05 +00:00
parent f54fbebd3b
commit 46218738c9
2 changed files with 103 additions and 85 deletions

View File

@@ -80,8 +80,6 @@ class IssueUrlInsertionTest(unittest.TestCase):
self._setUp(['test_new.diff'])
self._standardTest(80)
# See GitHub issue #236
@unittest.expectedFailure
def test_line_numbering_with_deletions(self):
self._setUp(['test_new_py.diff', 'test_edit_py.diff'])
with self.subTest("Issue URL insertion"):