mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] KTIJ-36488 Added tests
GitOrigin-RevId: df5595289100f570c70b37ea6a663e994fb99068
This commit is contained in:
committed by
intellij-monorepo-bot
parent
560eafac3c
commit
73eb12033a
@@ -0,0 +1,11 @@
|
||||
val somePrefixA: Int = 5
|
||||
val somePrefixB: Pair<Int, Boolean> = 1 to true
|
||||
val somePrefixC: Int = 5
|
||||
|
||||
fun testDestructuring() {
|
||||
val (a: Int, b: Boolean) = somePrefix<caret>
|
||||
}
|
||||
|
||||
// ORDER: somePrefixB, somePrefixA, somePrefixC
|
||||
// IGNORE_K1
|
||||
// IGNORE_K2
|
||||
+5
@@ -346,6 +346,11 @@ public abstract class BasicCompletionWeigherTestGenerated extends AbstractBasicC
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuring.kt")
|
||||
public void testDestructuring() throws Exception {
|
||||
runTest("../testData/weighers/basic/expectedType/destructuring.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifConditionQualified.kt")
|
||||
public void testIfConditionQualified() throws Exception {
|
||||
runTest("../testData/weighers/basic/expectedType/ifConditionQualified.kt");
|
||||
|
||||
+5
@@ -346,6 +346,11 @@ public abstract class HighLevelWeigherTestGenerated extends AbstractHighLevelWei
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuring.kt")
|
||||
public void testDestructuring() throws Exception {
|
||||
runTest("../../completion/testData/weighers/basic/expectedType/destructuring.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifConditionQualified.kt")
|
||||
public void testIfConditionQualified() throws Exception {
|
||||
runTest("../../completion/testData/weighers/basic/expectedType/ifConditionQualified.kt");
|
||||
|
||||
Reference in New Issue
Block a user