Skip to content

Commit ad0a2b3

Browse files
committed
test: Add test cases for bold format file mentions
1 parent 7e51c68 commit ad0a2b3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/basic/test_coder.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ def test_get_file_mentions_various_formats(self):
349349
),
350350
{test_files[1]},
351351
),
352+
353+
# Files mentioned in markdown bold format
354+
(f"You should check **{test_files[0]}** for issues", {test_files[0]}),
355+
(f"Look at both **{test_files[1]}** and **{test_files[2]}**", {test_files[1], test_files[2]}),
356+
(f"The file **{test_files[3].replace('/', '\\')}** needs updating", {test_files[3]}),
357+
(f"Files to modify:\n- **{test_files[0]}**\n- **{test_files[4]}**", {test_files[0], test_files[4]}),
358+
(f"Files mentioned like **aider/args.py** should be detected", set()),
352359
]
353360

354361
for content, expected_mentions in test_cases:

0 commit comments

Comments
 (0)