Test are imported functions completed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package first
|
||||
|
||||
import second.testFun
|
||||
|
||||
fun test() {
|
||||
te<caret>
|
||||
}
|
||||
|
||||
// EXIST: testFun
|
||||
@@ -0,0 +1,3 @@
|
||||
package second
|
||||
|
||||
fun testFun() : Int = 12
|
||||
@@ -54,6 +54,6 @@ public abstract class JetCompletionMultiTestBase extends CompletionTestCase {
|
||||
}
|
||||
|
||||
protected void doFileTest() {
|
||||
doFileTest(1, getFileNameList());
|
||||
doFileTest(0, getFileNameList());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,10 @@ package org.jetbrains.jet.completion;
|
||||
import org.jetbrains.jet.plugin.PluginTestCaseBase;
|
||||
|
||||
public class JetMultifileBasicCompletionTest extends JetCompletionMultiTestBase {
|
||||
public void testCompleteImportedFunction() {
|
||||
doFileTest();
|
||||
}
|
||||
|
||||
public void testCompletionOnImportedFunction() {
|
||||
doFileTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user