From f2c7d3b6fa84bcf0826342b5adda610150e0e81a Mon Sep 17 00:00:00 2001 From: Pluemicke Martin Date: Wed, 23 Sep 2015 22:33:54 +0200 Subject: [PATCH] Matrix_lambda.jav Matrix_lambdaTest.java hinzugefuegt --- test/bytecode/Matrix_lambda.jav | 5 +++++ test/bytecode/Matrix_lambdaTest.java | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/bytecode/Matrix_lambda.jav create mode 100644 test/bytecode/Matrix_lambdaTest.java diff --git a/test/bytecode/Matrix_lambda.jav b/test/bytecode/Matrix_lambda.jav new file mode 100644 index 00000000..8b318125 --- /dev/null +++ b/test/bytecode/Matrix_lambda.jav @@ -0,0 +1,5 @@ +import de.dhbwstuttgart.typeinference.Menge; + +class Matrix extends Menge> { + op = (Matrix m) -> (f) -> f.apply(this, m); +} \ No newline at end of file diff --git a/test/bytecode/Matrix_lambdaTest.java b/test/bytecode/Matrix_lambdaTest.java new file mode 100644 index 00000000..7cbf4932 --- /dev/null +++ b/test/bytecode/Matrix_lambdaTest.java @@ -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); + } +}