Groupped tests by folders
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'filterNot{}.mapIndexed{}.firstOrNull{}'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().filterNot{}.mapIndexed{}.firstOrNull{}'"
|
||||
fun foo(list: List<String>): Int? {
|
||||
var index = 0
|
||||
<caret>for (s in list) {
|
||||
if (s.isBlank()) continue
|
||||
val x = s.length * index++
|
||||
if (x > 0) return x
|
||||
}
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user