Rearrange stdlib unit tests across packages.

Rearrange JS stdlib unit tests.
This commit is contained in:
Ilya Gorbunov
2016-06-17 00:13:05 +03:00
parent d266f546f4
commit c5a208f3eb
33 changed files with 57 additions and 80 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// this package referenced from testArrayScriptTest
package jstest
package test.collections.js
fun testSize(): Int {
val a1 = arrayOf<String>()
+1 -1
View File
@@ -1,4 +1,4 @@
package test.collections
package test.collections.js
import org.junit.Test as test
import kotlin.test.*
@@ -1,4 +1,4 @@
package test.collections
package test.collections.js
import java.util.*
@@ -8,7 +8,7 @@ import kotlin.comparisons.*
fun <T> List<T>.toArrayList() = this.toCollection(ArrayList<T>())
class JavautilCollectionsTest {
class JsCollectionsTest {
val TEST_LIST = arrayOf(2, 0, 9, 7, 1).toList()
val SORTED_TEST_LIST = arrayOf(0, 1, 2, 7, 9).toList()
val MAX_ELEMENT = 9
+4 -4
View File
@@ -1,10 +1,10 @@
package test.collections
package test.collections.js
import test.collections.behaviors.mapBehavior
import kotlin.test.*
import java.util.*
import org.junit.Test as test
import java.util.*
import test.collections.*
import test.collections.behaviors.*
class ComplexMapJsTest : MapJsTest() {
// Helper function with generic parameter to force to use ComlpexHashMap
+3 -2
View File
@@ -1,8 +1,9 @@
package test.collections
package test.collections.js
import kotlin.test.*
import org.junit.Test
import test.collections.behaviors.setBehavior
import test.collections.*
import test.collections.behaviors.*
import java.util.HashSet
import java.util.LinkedHashSet