Merge boxWithStdlib testData into box, delete BoxWithStdlib test

This commit is contained in:
Alexander Udalov
2016-03-07 13:36:14 +03:00
committed by Alexander Udalov
parent 22bfc9786a
commit 06a67e6602
535 changed files with 3520 additions and 3871 deletions
+17
View File
@@ -0,0 +1,17 @@
// WITH_RUNTIME
import kotlin.test.assertEquals
inline fun <reified T> copy(c: Collection<T>): Array<T> {
return c.toTypedArray()
}
fun box(): String {
val a: Array<String> = copy(listOf("a", "b", "c"))
assertEquals("abc", a.joinToString(""))
val b: Array<Int> = copy(listOf(1,2,3))
assertEquals("123", b.map { it.toString() }.joinToString(""))
return "OK"
}