Parameter name completion: added more tests for ordering
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class MyFile
|
||||
class MyFileStream
|
||||
|
||||
fun foo(myFi<caret>)
|
||||
|
||||
// ORDER: myFile
|
||||
// ORDER: myFileStream
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class FooBar
|
||||
class FaOaOa
|
||||
|
||||
fun foo(foo<caret>)
|
||||
|
||||
// ORDER: fooBar
|
||||
// ORDER: faOaOa
|
||||
+12
@@ -150,5 +150,17 @@ public class BasicCompletionWeigherTestGenerated extends AbstractBasicCompletion
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ImportedFirst.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ShorterFirst.kt")
|
||||
public void testShorterFirst() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/ShorterFirst.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("StartMatchFirst.kt")
|
||||
public void testStartMatchFirst() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/weighers/basic/parameterNameAndType/StartMatchFirst.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user