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
@@ -6,7 +6,7 @@ import java.util.ArrayList
fun foo(list: List<String>): List<Int> {
val result = ArrayList<Int>()
list
.filter { it.length > result.size }
.forEach { result.add(it.hashCode()) }
.filter { it.length > result.size }
.forEach { result.add(it.hashCode()) }
return result
}
@@ -6,8 +6,8 @@ import java.util.ArrayList
fun foo(list: List<String>): List<Int> {
val result = ArrayList<Int>()
list
.asSequence()
.filter { it.length > result.size }
.forEach { result.add(it.hashCode()) }
.asSequence()
.filter { it.length > result.size }
.forEach { result.add(it.hashCode()) }
return result
}
@@ -5,7 +5,7 @@ import java.util.HashSet
fun foo(map: Map<Int, String>): Collection<Int> {
val <caret>result = map.values
.map { it.length }
.toSet()
.map { it.length }
.toSet()
return result
}
@@ -5,8 +5,8 @@ import java.util.HashSet
fun foo(map: Map<Int, String>): Collection<Int> {
val <caret>result = map.values
.asSequence()
.map { it.length }
.toSet()
.asSequence()
.map { it.length }
.toSet()
return result
}