test: add JavaScript fixture and update comment pattern tests

This commit is contained in:
Paul Gauthier (aider) 2024-12-01 10:02:53 -08:00
parent 5d5fed62f2
commit cbadfd59db
2 changed files with 34 additions and 4 deletions

View file

@ -6,14 +6,17 @@ from aider.watch import FileWatcher
def test_ai_comment_pattern():
# Test various AI comment patterns
test_comments = [
# Python style
"# ai do something",
"# AI make this better",
"# ai! urgent change needed",
"# AI! another urgent one",
"//ai javascript style",
"//AI do that thing",
"//ai! urgent js thing",
"// ai with some space",
# JavaScript style
"//ai do something",
"//AI make this better",
"//ai! urgent change needed",
"//AI! another urgent one",
"// ai with space",
"// AI with caps",
"// ai! with bang",
]