mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
test: enhance Java test case with interface and implementation
This commit is contained in:
parent
4f6e52aed0
commit
203128d935
1 changed files with 18 additions and 5 deletions
|
@ -399,11 +399,24 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
|||
),
|
||||
"java": (
|
||||
"Test.java",
|
||||
(
|
||||
"public class Test {\n public static void main(String[] args) {\n "
|
||||
' System.out.println("Hello, World!");\n }\n}\n'
|
||||
),
|
||||
"Test", # Key symbol to check
|
||||
"""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"));
|
||||
}
|
||||
}
|
||||
""",
|
||||
"Greeting", # Key symbol to check
|
||||
),
|
||||
"javascript": (
|
||||
"test.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue