More tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
|
||||
|
||||
fun foo() {
|
||||
val pair = 1 <caret>
|
||||
}
|
||||
|
||||
// ELEMENT: to
|
||||
// CHAR: ' '
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
fun <A, B> A.to(that: B): Pair<A, B> = Pair(this, that)
|
||||
|
||||
fun foo() {
|
||||
val pair = 1 to <caret>
|
||||
}
|
||||
|
||||
// ELEMENT: to
|
||||
// CHAR: ' '
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
c<caret>
|
||||
|
||||
// ELEMENT: class
|
||||
// CHAR: ' '
|
||||
@@ -0,0 +1,4 @@
|
||||
class <caret>
|
||||
|
||||
// ELEMENT: class
|
||||
// CHAR: ' '
|
||||
+13
@@ -19,6 +19,7 @@ package org.jetbrains.jet.completion.handlers;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.jet.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.InnerTestClasses;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -137,6 +138,18 @@ public class CompletionCharFilterTestGenerated extends AbstractCompletionCharFil
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InfixCallAndSpace.kt")
|
||||
public void testInfixCallAndSpace() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/handlers/charFilter/InfixCallAndSpace.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("KeywordAndSpace.kt")
|
||||
public void testKeywordAndSpace() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/handlers/charFilter/KeywordAndSpace.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("LParenth.kt")
|
||||
public void testLParenth() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/handlers/charFilter/LParenth.kt");
|
||||
|
||||
Reference in New Issue
Block a user