From ad0a2b3260d21f92b151b813c9af908066cc8069 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 22 Mar 2025 13:25:58 -0700 Subject: [PATCH] test: Add test cases for bold format file mentions --- tests/basic/test_coder.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/basic/test_coder.py b/tests/basic/test_coder.py index 6eff6035a..7f65b815a 100644 --- a/tests/basic/test_coder.py +++ b/tests/basic/test_coder.py @@ -349,6 +349,13 @@ class TestCoder(unittest.TestCase): ), {test_files[1]}, ), + + # Files mentioned in markdown bold format + (f"You should check **{test_files[0]}** for issues", {test_files[0]}), + (f"Look at both **{test_files[1]}** and **{test_files[2]}**", {test_files[1], test_files[2]}), + (f"The file **{test_files[3].replace('/', '\\')}** needs updating", {test_files[3]}), + (f"Files to modify:\n- **{test_files[0]}**\n- **{test_files[4]}**", {test_files[0], test_files[4]}), + (f"Files mentioned like **aider/args.py** should be detected", set()), ] for content, expected_mentions in test_cases: