[kotlin] KTIJ-36488 Added tests

GitOrigin-RevId: df5595289100f570c70b37ea6a663e994fb99068
This commit is contained in:
Frederik Haselmeier
2025-11-19 18:32:24 +00:00
committed by intellij-monorepo-bot
parent 560eafac3c
commit 73eb12033a
3 changed files with 21 additions and 0 deletions
@@ -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
@@ -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");
@@ -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");