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
@@ -7,7 +7,9 @@ fun newFun(p1: Int, a: Int, p2: Int, p3: Int, b: Int){}
fun foo() {
newFun(0, // 0
-1, 1, // 1
2, // 2
-2)
newFun(
0, // 0
-1, 1, // 1
2, // 2
-2
)
@@ -8,6 +8,7 @@ fun newFun(p4: Int, p3: Int, p2: Int, p1: Int, p0: Int){}
fun foo() {
newFun(/* 4 */ 4, 3, 2, // 2
/* 1 */ 1,
/* 0 */ 0)
/* 1 */ 1,
/* 0 */ 0
)
}
@@ -8,7 +8,8 @@ interface X {
fun newFun(x: X, a: Int, b: Int){}
fun foo(x: X) {
newFun(x/*receiver*/, 1, // pass 1
2 // pass 2
newFun(
x/*receiver*/, 1, // pass 1
2 // pass 2
)
}
@@ -9,7 +9,8 @@ interface X {
fun foo(x: X) {
x.newFun(
1,
2,
0)
1,
2,
0
)
}
@@ -8,8 +8,8 @@ fun Int.newFun(): Int = this
fun foo(list: List<String>): Int {
return list
.filter { it.isNotEmpty() }
.map { it.length }
.first()
.<caret>newFun()
.filter { it.isNotEmpty() }
.map { it.length }
.first()
.<caret>newFun()
}
@@ -8,7 +8,9 @@ interface X {
}
fun foo(x: X) {
x.<caret>newFun(1,
2,
3)
x.<caret>newFun(
1,
2,
3
)
}
@@ -35,6 +35,6 @@ fun createHi(any: Any) = "Hi $any"
val unDeprecateMe = mutableListOf("Hello").apply {
addA(d(::createHi, 1 ) { // Run the quick fix from the IDE and watch it produce broken code.
println("Yo")
}, Unit)
println("Yo")
}, Unit)
}