[kotlin] KTIJ-35873 adjusted tests after removing liftShorter weigher

Many weigher tests used to explicitly expect the shorter element to be the very next element, but this is no longer the case.

GitOrigin-RevId: 6c3b1a41f27947aba8ee28ad5784f70212cffb2f
This commit is contained in:
Frederik Haselmeier
2026-02-06 17:02:39 +00:00
committed by intellij-monorepo-bot
parent 5bd247e6a2
commit f03c134d4e
20 changed files with 27 additions and 20 deletions
@@ -12,8 +12,8 @@ fun foo(e: ENUM) {
// WITH_ORDER
// EXIST: ENUM.AAAA
// EXIST: ENUM
// EXIST: ENUM.BBBB
// EXIST: ENUM.CCCC
// EXIST: { lookupString: "else -> "}
// EXIST: ENUM
// FIR_COMPARISON
@@ -13,6 +13,6 @@ fun foo(e: ENUM) {
// WITH_ORDER
// EXIST: ENUM.BBBB
// EXIST: ENUM
// EXIST: { lookupString: "else -> "}
// EXIST: ENUM
// FIR_COMPARISON
@@ -14,9 +14,9 @@ fun foo(e: ENUM) {
// WITH_ORDER
// EXIST: ENUM.AAAA
// EXIST: ENUM
// EXIST: ENUM.BBBB
// EXIST: ENUM.CCCC
// EXIST: { lookupString: "else -> "}
// EXIST: ENUM
// EXIST: a.
// FIR_COMPARISON
@@ -15,7 +15,7 @@ fun foo(e: SEALED) {
// WITH_ORDER
// EXIST: is SEALED.AAAA
// EXIST: SEALED.BBBB
// EXIST: SEALED
// EXIST: is SEALED.CCCC
// EXIST: { lookupString: "else -> "}
// EXIST: SEALED
// FIR_COMPARISON
@@ -17,8 +17,8 @@ fun foo(e: SEALED) {
// WITH_ORDER
// EXIST: is SEALED.AAAA
// EXIST: SEALED.BBBB
// EXIST: SEALED
// EXIST: is SEALED.CCCC
// EXIST: { lookupString: "else -> "}
// EXIST: SEALED
// EXIST: a.
// FIR_COMPARISON
@@ -12,9 +12,9 @@ fun foo(e: ENUM?) {
// WITH_ORDER
// EXIST: ENUM.AAAA
// EXIST: ENUM
// EXIST: ENUM.BBBB
// EXIST: ENUM.CCCC
// EXIST: null
// EXIST: { lookupString: "else -> "}
// EXIST: ENUM
// FIR_COMPARISON
@@ -10,4 +10,6 @@ fun bar() {
}
// ORDER: nullNotNull
// ORDER: null
// ORDER: null
// this works for K2 but null is even further down
// IGNORE_K2
@@ -10,4 +10,6 @@ fun bar() {
}
// ORDER: nullNullable
// ORDER: null
// ORDER: null
// this works for K2 but null is even further down
// IGNORE_K2
@@ -5,4 +5,5 @@ fun main(variables: Array<String>) {
va<caret>
}
// ORDER: values, val, variables, var
// ORDER: values, variables, val, var
// IGNORE_K1
@@ -10,4 +10,6 @@ class Test {
}
// ORDER: this@Test
// ORDER: this
// ORDER: thisOther
// ORDER: this
// IGNORE_K1
@@ -10,4 +10,4 @@ fun usage() {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -8,4 +8,4 @@ fun usage() {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -7,4 +7,4 @@ fun usage() {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -9,4 +9,4 @@ fun usage() {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -7,4 +7,4 @@ fun usage() {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -12,4 +12,4 @@ fun usage(): Int {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -8,4 +8,4 @@ fun usage(): Int {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -11,4 +11,4 @@ fun usage(): Int {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -9,4 +9,4 @@ fun usage(): Int {
}
// ORDER: returnFun
// ORDER: return
// return should appear after, but does not have to be the very next element
@@ -15,4 +15,4 @@ fun test(): Int {
return x.<caret>
}
//ORDER: d, foo, f
//ORDER: d, foo