tests: apply official code style

#KT-38632 Fixed
This commit is contained in:
Dmitry Gridin
2020-04-28 15:51:57 +07:00
parent d8f9643650
commit 11a3482970
406 changed files with 1785 additions and 1525 deletions
@@ -3,6 +3,6 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<Int>){
list
.filter { it > 0 }
.forEach { println("positive number") }
.filter { it > 0 }
.forEach { println("positive number") }
}
@@ -3,7 +3,7 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<Int>){
list
.asSequence()
.filter { it > 0 }
.forEach { println("positive number") }
.asSequence()
.filter { it > 0 }
.forEach { println("positive number") }
}
@@ -3,6 +3,6 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.forEachIndexed{}'"
fun foo(list: List<String>) {
list
.map { it.substring(1) }
.forEachIndexed { index, s1 -> println(s1.hashCode() * index) }
.map { it.substring(1) }
.forEachIndexed { index, s1 -> println(s1.hashCode() * index) }
}
@@ -3,7 +3,7 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.forEachIndexed{}'"
fun foo(list: List<String>) {
list
.asSequence()
.map { it.substring(1) }
.forEachIndexed { index, s1 -> println(s1.hashCode() * index) }
.asSequence()
.map { it.substring(1) }
.forEachIndexed { index, s1 -> println(s1.hashCode() * index) }
}
@@ -3,6 +3,6 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.forEach{}'"
fun foo(list: List<String>) {
list
.mapIndexed { index, s -> s.length * index }
.forEach { println(it) }
.mapIndexed { index, s -> s.length * index }
.forEach { println(it) }
}
@@ -3,7 +3,7 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.forEach{}'"
fun foo(list: List<String>) {
list
.asSequence()
.mapIndexed { index, s -> s.length * index }
.forEach { println(it) }
.asSequence()
.mapIndexed { index, s -> s.length * index }
.forEach { println(it) }
}
@@ -3,6 +3,6 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<String>) {
list
.filter { it.isNotBlank() }
.forEach { println(it) }
.filter { it.isNotBlank() }
.forEach { println(it) }
}
@@ -3,7 +3,7 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.forEach{}'"
fun foo(list: List<String>) {
list
.asSequence()
.filter { it.isNotBlank() }
.forEach { println(it) }
.asSequence()
.filter { it.isNotBlank() }
.forEach { println(it) }
}