modified: test/bytecode/javFiles/Lambda.jav

modified:   test/javFiles/Vector.jav
	modified:   test/typeinference/UnifyTest.java
This commit is contained in:
Martin Plümicke 2018-07-02 11:11:29 +02:00
parent 9123e222f4
commit e0c5afcd6d
3 changed files with 16 additions and 4 deletions

View File

@ -7,8 +7,8 @@ public class Lambda {
var lam1 = (x) -> { var lam1 = (x) -> {
return x; return x;
}; };
// return lam1.apply(new Apply()); return lam1.apply(new Apply());
return lam1; //return lam1;
// return new Vector(); // return new Vector();
} }
} }

View File

@ -1,4 +1,5 @@
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Vector;
import java.lang.Object; import java.lang.Object;
class MyVector{ class MyVector{
@ -8,6 +9,15 @@ id(x){
x.add(i); x.add(i);
x.add(i); x.add(i);
x.add(i); x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
x.add(i);
return x; return x;
} }
} }

View File

@ -35,10 +35,12 @@ public class UnifyTest {
} }
*/ */
/*
@Test @Test
public void vector() throws IOException, ClassNotFoundException { public void vector() throws IOException, ClassNotFoundException {
execute(new File(rootDirectory+"Vector.jav")); execute(new File(rootDirectory+"Vector.jav"));
} }
*/
/* /*
@Test @Test
@ -79,7 +81,7 @@ public class UnifyTest {
} }
*/ */
/*
@Test @Test
public void matrix() throws IOException, ClassNotFoundException { public void matrix() throws IOException, ClassNotFoundException {
@ -87,7 +89,7 @@ public class UnifyTest {
//JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory+"Matrix.jav")); //JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory+"Matrix.jav"));
//compiler.generateBytecode(); //compiler.generateBytecode();
} }
*/
/* /*
@Test @Test