Files
kotlin-fork/compiler/tests/org/jetbrains/jet/codegen/ClosuresGenTest.java
T
2011-10-20 16:21:18 +02:00

41 lines
1.2 KiB
Java

package org.jetbrains.jet.codegen;
/**
* @author max
*/
public class ClosuresGenTest extends CodegenTestCase {
public void testSimplestClosure() throws Exception {
blackBoxFile("classes/simplestClosure.jet");
System.out.println(generateToText());
}
public void testSimplestClosureAndBoxing() throws Exception {
blackBoxFile("classes/simplestClosureAndBoxing.jet");
}
public void testClosureWithParameter() throws Exception {
blackBoxFile("classes/closureWithParameter.jet");
}
public void testClosureWithParameterAndBoxing() throws Exception {
blackBoxFile("classes/closureWithParameterAndBoxing.jet");
}
public void testExtensionClosure() throws Exception {
blackBoxFile("classes/extensionClosure.jet");
}
public void testEnclosingLocalVariable() throws Exception {
blackBoxFile("classes/enclosingLocalVariable.jet");
System.out.println(generateToText());
}
public void testDoubleEnclosedLocalVariable() throws Exception {
blackBoxFile("classes/doubleEnclosedLocalVariable.jet");
}
public void testEnclosingThis() throws Exception {
blackBoxFile("classes/enclosingThis.jet");
}
}