Added tests for exfun/exval/exvar.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun Int.foo(arg : Int) : Unit {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<caret>
|
||||
@@ -0,0 +1,4 @@
|
||||
val Int.v : Int
|
||||
get() {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<caret>
|
||||
@@ -0,0 +1,7 @@
|
||||
var Int.v : Int
|
||||
get() {
|
||||
<caret>
|
||||
}
|
||||
set(value) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<caret>
|
||||
@@ -42,8 +42,7 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
||||
start();
|
||||
|
||||
assertStringItems("args", "x", "y");
|
||||
type("y");
|
||||
nextTab();
|
||||
typeAndNext("y");
|
||||
|
||||
checkAfter();
|
||||
}
|
||||
@@ -79,6 +78,42 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase {
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
public void testExfun() {
|
||||
start();
|
||||
|
||||
typeAndNext("Int");
|
||||
typeAndNext("foo");
|
||||
typeAndNext("arg : Int");
|
||||
nextTab();
|
||||
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
public void testExval() {
|
||||
start();
|
||||
|
||||
typeAndNext("Int");
|
||||
nextTab();
|
||||
typeAndNext("Int");
|
||||
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
public void testExvar() {
|
||||
start();
|
||||
|
||||
typeAndNext("Int");
|
||||
nextTab();
|
||||
typeAndNext("Int");
|
||||
|
||||
checkAfter();
|
||||
}
|
||||
|
||||
private void typeAndNext(String s) {
|
||||
type(s);
|
||||
nextTab();
|
||||
}
|
||||
|
||||
public void testIter() {
|
||||
start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user