mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refactor: use fixture file for Java test instead of embedded code
This commit is contained in:
parent
ec2b635a1a
commit
447b7af573
1 changed files with 1 additions and 17 deletions
|
@ -350,23 +350,7 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
|||
),
|
||||
"java": (
|
||||
"Test.java",
|
||||
"""public interface Greeting {
|
||||
String greet(String name);
|
||||
}
|
||||
|
||||
public class Test implements Greeting {
|
||||
private String prefix = "Hello";
|
||||
|
||||
public String greet(String name) {
|
||||
return prefix + ", " + name + "!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Test greeter = new Test();
|
||||
System.out.println(greeter.greet("World"));
|
||||
}
|
||||
}
|
||||
""",
|
||||
"", # Now reads from fixture file
|
||||
"Greeting", # Key symbol to check
|
||||
),
|
||||
"javascript": (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue