From d7380c6cb74b3fdacd035e146bee3fb9a162134e Mon Sep 17 00:00:00 2001 From: Victorious3 Date: Sat, 2 Jul 2022 16:14:46 +0200 Subject: [PATCH] Remove duplicate testcase --- src/test/java/targetast/ASTToTypedTargetAST.java | 5 +++-- .../bytecode/javFiles/TPHsAndGenerics.jav | 16 ---------------- 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav diff --git a/src/test/java/targetast/ASTToTypedTargetAST.java b/src/test/java/targetast/ASTToTypedTargetAST.java index db1c635f6..881e0cb7c 100644 --- a/src/test/java/targetast/ASTToTypedTargetAST.java +++ b/src/test/java/targetast/ASTToTypedTargetAST.java @@ -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))); } + } diff --git a/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav b/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav deleted file mode 100644 index 84844c9b1..000000000 --- a/src/test/resources/bytecode/javFiles/TPHsAndGenerics.jav +++ /dev/null @@ -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; - } -} \ No newline at end of file