Stdlib: run all stdlib tests with JS backend(as possible).

This commit is contained in:
Zalim Bashorov
2014-10-10 17:10:17 +04:00
parent f20ee6df4b
commit f202ad9f98
18 changed files with 252 additions and 208 deletions
+8 -9
View File
@@ -2,26 +2,25 @@ package test.collections
import kotlin.*
import kotlin.io.*
import kotlin.util.*
import kotlin.test.*
import java.util.*
import java.io.*
import junit.framework.TestCase
import org.junit.Test as test
class OldStdlibTest() : TestCase() {
fun testCollectionEmpty() {
class OldStdlibTest() {
test fun testCollectionEmpty() {
assertNot {
Arrays.asList(0, 1, 2).empty
listOf(0, 1, 2).empty
}
}
fun testCollectionSize() {
test fun testCollectionSize() {
assertTrue {
Arrays.asList(0, 1, 2).size == 3
listOf(0, 1, 2).size == 3
}
}
fun testInputStreamIterator() {
test fun testInputStreamIterator() {
val x = ByteArray (10)
for(index in 0..9) {
@@ -29,7 +28,7 @@ class OldStdlibTest() : TestCase() {
}
for(b in x.inputStream) {
System.out.println(b)
println(b)
}
}
}