Update box tests to 1.2.0-rc-39

This commit is contained in:
Pavel Punegov
2017-11-09 20:27:53 +03:00
committed by Pavel Punegov
parent 0121b6a185
commit ffa1ffa659
442 changed files with 20811 additions and 165 deletions
@@ -10,14 +10,14 @@ fun check(expected: String, obj: Any?) {
}
fun box(): String {
check("() -> kotlin.Unit")
{ -> }
check("() -> kotlin.Int")
{ -> 42 }
check("() -> kotlin.Unit",
{ -> })
check("() -> kotlin.Int",
{ -> 42 })
check("(kotlin.String) -> kotlin.Long",
fun (s: String) = 42.toLong())
check("(kotlin.Int, kotlin.Int) -> kotlin.Unit")
{ x: Int, y: Int -> }
check("(kotlin.Int, kotlin.Int) -> kotlin.Unit",
{ x: Int, y: Int -> })
check("kotlin.Int.() -> kotlin.Unit",
fun Int.() {})
@@ -8,14 +8,14 @@ fun check(expected: String, obj: Any?) {
}
fun box(): String {
check("Function0<kotlin.Unit>")
{ -> }
check("Function0<java.lang.Integer>")
{ -> 42 }
check("Function0<kotlin.Unit>",
{ -> })
check("Function0<java.lang.Integer>",
{ -> 42 })
check("Function1<java.lang.String, java.lang.Long>",
fun (s: String) = 42.toLong())
check("Function2<java.lang.Integer, java.lang.Integer, kotlin.Unit>")
{ x: Int, y: Int -> }
check("Function2<java.lang.Integer, java.lang.Integer, kotlin.Unit>",
{ x: Int, y: Int -> })
check("Function1<java.lang.Integer, kotlin.Unit>",
fun Int.() {})