mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 00:21:34 +00:00
Add required files to build StdLibTestToJSTest. Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
19 lines
461 B
Kotlin
19 lines
461 B
Kotlin
// this package referenced from testArrayScriptTest
|
|
package jstest
|
|
|
|
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()
|
|
}
|