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
@@ -26,7 +26,13 @@ fun foo(a: Int): Int {
return b + c + d + e
}
private fun list(b: Int, a: Int, c: Int, d: Int, e: Int): List<Int> {
private fun list(
b: Int,
a: Int,
c: Int,
d: Int,
e: Int
): List<Int> {
var b1 = b
var c1 = c
var d1 = d
@@ -21,7 +21,12 @@ fun foo(a: Int): Int {
return b + c + d
}
private fun triple(b: Int, a: Int, c: Int, d: Int): Triple<Int, Int, Int> {
private fun triple(
b: Int,
a: Int,
c: Int,
d: Int
): Triple<Int, Int, Int> {
var b1 = b
var c1 = c
var d1 = d
@@ -16,7 +16,7 @@ fun foo1() {
val x = 1
var y: Int = x
println(
i(x, y)
i(x, y)
)
}
@@ -13,5 +13,8 @@ fun foo(n: Int): Int {
return i(n, Int::bar1, Int::bar2)
}
private fun i(n: Int, bar1: Int.(m: Int) -> Int, bar2: Int.(m: Int) -> Int) =
n.bar1(n + 1).bar2(n + 2)
private fun i(
n: Int,
bar1: Int.(m: Int) -> Int,
bar2: Int.(m: Int) -> Int
) = n.bar1(n + 1).bar2(n + 2)
@@ -17,5 +17,8 @@ class A<T: Data>(val t: T) where T: DataEx {
}
}
private fun <T : Data, U : Data, V : Data> i(a: A<T>, b: A<T>.B<U>, v: V) where T : DataEx, U : DataExEx, V : DataEx =
a.t.x + b.u.x + v.x
private fun <T : Data, U : Data, V : Data> i(
a: A<T>,
b: A<T>.B<U>,
v: V
) where T : DataEx, U : DataExEx, V : DataEx = a.t.x + b.u.x + v.x