SimplifiableCallChainInspection: fix tests
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ce6cda631d
commit
e4b10a156e
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).<caret>sortedByDescending { it.second }.firstOrNull()
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).<caret>sortedByDescending { it.second }.firstOrNull()
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).maxBy { it.second }
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second }
|
||||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).<caret>sortedByDescending { it.second }.lastOrNull()
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).<caret>sortedByDescending { it.second }.lastOrNull()
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).minBy { it.second }
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second }
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).<caret>sortedBy { it.second }.firstOrNull()
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).<caret>sortedBy { it.second }.firstOrNull()
|
||||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).minBy { it.second }
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second }
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).<caret>sortedBy { it.second }.lastOrNull()
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).<caret>sortedBy { it.second }.lastOrNull()
|
||||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
val x = listOf("a" to 1, ,"c" to 3, "b" to 2).maxBy { it.second }
|
val x = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second }
|
||||||
Reference in New Issue
Block a user