handle filenames above the triple quotes

This commit is contained in:
Paul Gauthier 2023-05-11 22:59:02 -07:00
parent 9ef50d8f3d
commit d45b7ae752
2 changed files with 23 additions and 2 deletions

View file

@ -54,6 +54,25 @@ Tooooo
>>>>>>> UPDATED
```
Hope you like it!
"""
edits = list(utils.find_original_update_blocks(edit))
self.assertEqual(edits, [("foo.txt", "Two\n", "Tooooo\n")])
def test_find_original_update_blocks_quote_below_filename(self):
edit = """
Here's the change:
foo.txt
```text
<<<<<<< ORIGINAL
Two
=======
Tooooo
>>>>>>> UPDATED
```
Hope you like it!
"""