From 69af8672935cdc20b4127119f9384617b6ba6700 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 26 Mar 2014 02:33:47 +0100 Subject: [PATCH] =?UTF-8?q?Tests=20angef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TypeInsertTests/LambdaTest1.jav | 10 ++++++++++ .../TypeInsertTests/LambdaTest1.java | 18 ++++++++++++++++++ .../TypeInsertTests/LambdaTest2.jav | 5 +++++ .../TypeInsertTests/LambdaTest2.java | 18 ++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 test/plugindevelopment/TypeInsertTests/LambdaTest1.jav create mode 100644 test/plugindevelopment/TypeInsertTests/LambdaTest1.java create mode 100644 test/plugindevelopment/TypeInsertTests/LambdaTest2.jav create mode 100644 test/plugindevelopment/TypeInsertTests/LambdaTest2.java diff --git a/test/plugindevelopment/TypeInsertTests/LambdaTest1.jav b/test/plugindevelopment/TypeInsertTests/LambdaTest1.jav new file mode 100644 index 00000000..9df77818 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/LambdaTest1.jav @@ -0,0 +1,10 @@ +class LambdaTest{ + +String var; + +op = () -> (f) -> { + f.apply(this,var); + return var; +}; + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/LambdaTest1.java b/test/plugindevelopment/TypeInsertTests/LambdaTest1.java new file mode 100644 index 00000000..50dc1cc1 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/LambdaTest1.java @@ -0,0 +1,18 @@ +package plugindevelopment.TypeInsertTests; + +import java.util.Vector; + +import org.junit.Test; + +public class LambdaTest1 { + + private static final String TEST_FILE = "LambdaTest1.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + mustContain.add("Fun0>> op"); + MultipleTypesInsertTester.test(this.TEST_FILE, mustContain); + } + +} diff --git a/test/plugindevelopment/TypeInsertTests/LambdaTest2.jav b/test/plugindevelopment/TypeInsertTests/LambdaTest2.jav new file mode 100644 index 00000000..9466d49c --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/LambdaTest2.jav @@ -0,0 +1,5 @@ +class LambdaTest{ + +Fun1>, C> op = (m) -> (f) -> f.apply(this,m); + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/LambdaTest2.java b/test/plugindevelopment/TypeInsertTests/LambdaTest2.java new file mode 100644 index 00000000..f817af9f --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/LambdaTest2.java @@ -0,0 +1,18 @@ +package plugindevelopment.TypeInsertTests; + +import java.util.Vector; + +import org.junit.Test; + +public class LambdaTest2 { + + private static final String TEST_FILE = "LambdaTest2.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + mustContain.add("C m"); + MultipleTypesInsertTester.test(this.TEST_FILE, mustContain); + } + +}