Remove duplicate testcase

This commit is contained in:
Victorious3 2022-07-02 16:14:46 +02:00
parent b43afd40ee
commit d7380c6cb7
2 changed files with 3 additions and 18 deletions

View File

@ -52,8 +52,8 @@ public class ASTToTypedTargetAST {
}
@Test
public void generics() throws Exception {
var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav").toFile();
public void tphsAndGenerics() throws Exception {
var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/Tph2.jav").toFile();
var compiler = new JavaTXCompiler(file);
var resultSet = compiler.typeInference();
var converter = new ASTToTargetAST(resultSet);
@ -61,4 +61,5 @@ public class ASTToTypedTargetAST {
var tphAndGenerics = TestCodegen.generateClass(converter.convert(classes.get(0)));
}
}

View File

@ -1,16 +0,0 @@
class TPHsAndGenerics {
id = x -> x;
id2(x) {
return id.apply(x);
}
m(a, b) {
var c = m2(a, b);
return a;
}
m2(a, b) {
return b;
}
}