forked from JavaTX/JavaCompilerCore
Tests angefügt
This commit is contained in:
parent
0e19e996c1
commit
69af867293
10
test/plugindevelopment/TypeInsertTests/LambdaTest1.jav
Normal file
10
test/plugindevelopment/TypeInsertTests/LambdaTest1.jav
Normal file
@ -0,0 +1,10 @@
|
||||
class LambdaTest{
|
||||
|
||||
String var;
|
||||
|
||||
op = () -> (f) -> {
|
||||
f.apply(this,var);
|
||||
return var;
|
||||
};
|
||||
|
||||
}
|
18
test/plugindevelopment/TypeInsertTests/LambdaTest1.java
Normal file
18
test/plugindevelopment/TypeInsertTests/LambdaTest1.java
Normal file
@ -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<String> mustContain = new Vector<String>();
|
||||
mustContain.add("Fun0<Fun1<String, Fun2<LambdaTest, String>>> op");
|
||||
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||
}
|
||||
|
||||
}
|
5
test/plugindevelopment/TypeInsertTests/LambdaTest2.jav
Normal file
5
test/plugindevelopment/TypeInsertTests/LambdaTest2.jav
Normal file
@ -0,0 +1,5 @@
|
||||
class LambdaTest{
|
||||
|
||||
Fun1<Fun1<K, Fun2<LambdaTest, C>>, C> op = (m) -> (f) -> f.apply(this,m);
|
||||
|
||||
}
|
18
test/plugindevelopment/TypeInsertTests/LambdaTest2.java
Normal file
18
test/plugindevelopment/TypeInsertTests/LambdaTest2.java
Normal file
@ -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<String> mustContain = new Vector<String>();
|
||||
mustContain.add("C m");
|
||||
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user