Groupped tests by folders
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'flatMap{}.mapNotNull{}.mapTo(){}'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().flatMap{}.mapNotNull{}.mapTo(){}'"
|
||||
fun foo(list: List<String>, target: MutableList<String>) {
|
||||
<caret>list
|
||||
.asSequence()
|
||||
.flatMap { it.indices.asSequence() }
|
||||
.mapNotNull { bar(it) }
|
||||
.mapTo(target) { it.substring(1) }
|
||||
}
|
||||
|
||||
fun bar(p: Int): String? = null
|
||||
Reference in New Issue
Block a user