Smart completion: one more working test and one more test to fix later

This commit is contained in:
Valentin Kipyatkov
2014-04-17 13:08:41 +04:00
parent 164fb84cbe
commit df299655a7
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,8 @@
fun foo(p: String.(Int) -> Unit){}
fun bar() {
foo(<caret>)
}
// EXIST: "{...}"
// EXIST: "{ Int -> ... }"
@@ -0,0 +1,11 @@
class C {
fun foo(s: String){}
}
fun foo(i: Int) {
val s = ""
C().foo(<caret>)
}
// ABSENT: i
// EXIST: s
@@ -221,6 +221,11 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
doTest("idea/testData/completion/smart/Lambda4.kt");
}
@TestMetadata("Lambda5.kt")
public void testLambda5() throws Exception {
doTest("idea/testData/completion/smart/Lambda5.kt");
}
@TestMetadata("MethodCallArgument.kt")
public void testMethodCallArgument() throws Exception {
doTest("idea/testData/completion/smart/MethodCallArgument.kt");
@@ -16,11 +16,17 @@
package org.jetbrains.jet.completion.handlers;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.TestMetadata;
import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestSuite;
import java.io.File;
import java.util.regex.Pattern;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.jetbrains.jet.completion.handlers.AbstractSmartCompletionHandlerTest;
/** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")