Added test for closure template.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun main(args : Array<String>) {
|
||||
val someFun = {param -> param}<caret>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main(args : Array<String>) {
|
||||
val someFun = <caret>
|
||||
}
|
||||
@@ -109,9 +109,13 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
private void typeAndNext(String s) {
|
||||
type(s);
|
||||
public void testClosure() {
|
||||
start();
|
||||
|
||||
typeAndNext("param");
|
||||
nextTab();
|
||||
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
public void testIter() {
|
||||
@@ -144,6 +148,11 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
||||
myFixture.checkResultByFile(getTestName(true) + ".exp.kt");
|
||||
}
|
||||
|
||||
private void typeAndNext(String s) {
|
||||
type(s);
|
||||
nextTab();
|
||||
}
|
||||
|
||||
private void type(String s) {
|
||||
myFixture.type(s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user