Matrix_lambda.jav Matrix_lambdaTest.java hinzugefuegt
This commit is contained in:
parent
02b17b1a8f
commit
f2c7d3b6fa
5
test/bytecode/Matrix_lambda.jav
Normal file
5
test/bytecode/Matrix_lambda.jav
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import de.dhbwstuttgart.typeinference.Menge;
|
||||||
|
|
||||||
|
class Matrix extends Menge<Menge<Integer>> {
|
||||||
|
op = (Matrix m) -> (f) -> f.apply(this, m);
|
||||||
|
}
|
14
test/bytecode/Matrix_lambdaTest.java
Normal file
14
test/bytecode/Matrix_lambdaTest.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package bytecode;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class Matrix_lambdaTest {
|
||||||
|
public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/";
|
||||||
|
public final static String testFile = "Matrix_lambda.jav";
|
||||||
|
public final static String outputFile = "Matrix_lambda.class";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user