Refactor JS tests: unified package name, test JS specific map implementations only in JS.
Add required files to build StdLibTestToJSTest. Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
// this package referenced from testArrayScriptTest
|
||||
package jstest
|
||||
|
||||
fun testSize(): Int {
|
||||
val a1 = array<String>()
|
||||
val a2 = array("foo")
|
||||
val a3 = array("foo", "bar")
|
||||
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 = array<String>()
|
||||
val a2 = array("foo")
|
||||
val a3 = array("foo", "bar")
|
||||
val a1 = arrayOf<String>()
|
||||
val a2 = arrayOf("foo")
|
||||
val a3 = arrayOf("foo", "bar")
|
||||
|
||||
return a1.toList().toString() + "-" + a2.toList().toString() + "-" + a3.toList().toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user