mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
test: add assertion for minimum result length in repomap test
This commit is contained in:
parent
7bc7b2e3da
commit
4f6e52aed0
1 changed files with 3 additions and 1 deletions
|
@ -412,7 +412,7 @@ class Person {
|
||||||
constructor(name) {
|
constructor(name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
sayHello() {
|
sayHello() {
|
||||||
return `Hello, ${this.name}!`;
|
return `Hello, ${this.name}!`;
|
||||||
}
|
}
|
||||||
|
@ -538,6 +538,8 @@ class Greeter {
|
||||||
dump(lang)
|
dump(lang)
|
||||||
dump(result)
|
dump(result)
|
||||||
|
|
||||||
|
self.assertGreater(len(result.strip().splitlines()), 1)
|
||||||
|
|
||||||
# Check if the result contains all the expected files and symbols
|
# Check if the result contains all the expected files and symbols
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
filename, result, f"File for language {lang} not found in repo map: {result}"
|
filename, result, f"File for language {lang} not found in repo map: {result}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue