mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
test from main entrypt
This commit is contained in:
parent
b0b83034e5
commit
ae9f42ef8a
1 changed files with 4 additions and 4 deletions
|
@ -232,7 +232,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output
|
||||||
line4
|
line4
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace)
|
result = eb.replace_most_similar_chunk(whole, part, replace)
|
||||||
self.assertEqual(result, expected_output)
|
self.assertEqual(result, expected_output)
|
||||||
|
|
||||||
def test_replace_part_with_missing_leading_whitespace(self):
|
def test_replace_part_with_missing_leading_whitespace(self):
|
||||||
|
@ -241,7 +241,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output
|
||||||
replace = "new_line1\nnew_line2"
|
replace = "new_line1\nnew_line2"
|
||||||
expected_output = " new_line1\n new_line2\n line3\n"
|
expected_output = " new_line1\n new_line2\n line3\n"
|
||||||
|
|
||||||
result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace)
|
result = eb.replace_most_similar_chunk(whole, part, replace)
|
||||||
self.assertEqual(result, expected_output)
|
self.assertEqual(result, expected_output)
|
||||||
|
|
||||||
def test_replace_part_with_just_some_missing_leading_whitespace(self):
|
def test_replace_part_with_just_some_missing_leading_whitespace(self):
|
||||||
|
@ -250,7 +250,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output
|
||||||
replace = "new_line1\nnew_line2"
|
replace = "new_line1\nnew_line2"
|
||||||
expected_output = " new_line1\n new_line2\n line3\n"
|
expected_output = " new_line1\n new_line2\n line3\n"
|
||||||
|
|
||||||
result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace)
|
result = eb.replace_most_similar_chunk(whole, part, replace)
|
||||||
self.assertEqual(result, expected_output)
|
self.assertEqual(result, expected_output)
|
||||||
|
|
||||||
def test_replace_part_with_missing_leading_whitespace_including_blank_lines(self):
|
def test_replace_part_with_missing_leading_whitespace_including_blank_lines(self):
|
||||||
|
@ -264,7 +264,7 @@ These changes replace the `subprocess.run` patches with `subprocess.check_output
|
||||||
replace = "new_line1\nnew_line2"
|
replace = "new_line1\nnew_line2"
|
||||||
expected_output = None
|
expected_output = None
|
||||||
|
|
||||||
result = eb.replace_part_with_missing_leading_whitespace(whole, part, replace)
|
result = eb.replace_most_similar_chunk(whole, part, replace)
|
||||||
self.assertEqual(result, expected_output)
|
self.assertEqual(result, expected_output)
|
||||||
|
|
||||||
def test_full_edit(self):
|
def test_full_edit(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue