Files
kotlin/libraries/stdlib/test/js/JsArrayScript.kt
Ilya Gorbunov c5a208f3eb Rearrange stdlib unit tests across packages.
Rearrange JS stdlib unit tests.
2016-06-18 16:50:32 +03:00

19 lines
468 B
Kotlin

// this package referenced from testArrayScriptTest
package test.collections.js
fun testSize(): Int {
val a1 = arrayOf<String>()
val a2 = arrayOf("foo")
val a3 = arrayOf("foo", "bar")
return a1.size + a2.size + a3.size
}
fun testToListToString(): String {
val a1 = arrayOf<String>()
val a2 = arrayOf("foo")
val a3 = arrayOf("foo", "bar")
return a1.toList().toString() + "-" + a2.toList().toString() + "-" + a3.toList().toString()
}