refactor: add initial language test fixtures for C, C++, Elixir and Java

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 06:59:58 -08:00
parent 9e9b5e8d46
commit a85ae206c9
4 changed files with 33 additions and 0 deletions

16
tests/fixtures/languages/java/Test.java vendored Normal file
View file

@ -0,0 +1,16 @@
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"));
}
}