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,4 +1,4 @@
|
||||
package jstest
|
||||
package test.collections
|
||||
|
||||
import org.junit.Test as test
|
||||
import kotlin.test.*
|
||||
@@ -7,9 +7,9 @@ import java.util.ArrayList;
|
||||
class JsArrayTest {
|
||||
|
||||
test fun arraySizeAndToList() {
|
||||
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")
|
||||
|
||||
assertEquals(0, a1.size())
|
||||
assertEquals(1, a2.size())
|
||||
@@ -22,7 +22,7 @@ class JsArrayTest {
|
||||
}
|
||||
|
||||
test fun arrayListFromCollection() {
|
||||
var c: Collection<String> = array("A", "B", "C").toList()
|
||||
var c: Collection<String> = arrayOf("A", "B", "C").toList()
|
||||
var a = ArrayList(c)
|
||||
|
||||
assertEquals(3, a.size())
|
||||
|
||||
Reference in New Issue
Block a user