From 43bfc551fffef9f3a6d518c470fd10c961403260 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Tue, 9 May 2017 20:15:42 +0200 Subject: [PATCH] Fehler in Test beheben --- test/javFiles/Methods.jav | 4 ++-- test/typeinference/JavaTXCompilerTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/javFiles/Methods.jav b/test/javFiles/Methods.jav index 4a6c9d6c..7ecd4d3f 100644 --- a/test/javFiles/Methods.jav +++ b/test/javFiles/Methods.jav @@ -2,7 +2,7 @@ class Methods { mt4(a,b,c) { return a.add(b).sub(c) ; } - mt1(a) {return a; } + mt1(a) {return a;} mt2(a) {return a.f; } @@ -12,6 +12,6 @@ class Methods { class Test { f; add(){} - add(b){} + add(b){return b;} sub(b){} } \ No newline at end of file diff --git a/test/typeinference/JavaTXCompilerTest.java b/test/typeinference/JavaTXCompilerTest.java index 4df1c29d..31f0a622 100644 --- a/test/typeinference/JavaTXCompilerTest.java +++ b/test/typeinference/JavaTXCompilerTest.java @@ -17,10 +17,10 @@ public class JavaTXCompilerTest { @Test public void test() throws IOException, ClassNotFoundException { JavaTXCompiler compiler = new JavaTXCompiler(); - //compiler.parse(new File(rootDirectory+"Methods.jav")); + compiler.parse(new File(rootDirectory+"Methods.jav")); //compiler.parse(new File(rootDirectory+"Generics.jav")); //compiler.parse(new File(rootDirectory+"MethodsEasy.jav")); - compiler.parse(new File(rootDirectory+"Lambda.jav")); + //compiler.parse(new File(rootDirectory+"Lambda.jav")); compiler.typeInference(); } } \ No newline at end of file