More tests

This commit is contained in:
Valentin Kipyatkov
2014-11-14 14:29:05 +03:00
parent 03b3cf7480
commit 7077e22dd3
5 changed files with 39 additions and 0 deletions
@@ -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: ' '
@@ -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");