Files
kotlin-fork/testlib/test/OldStdlibTest.kt
T
Alex Tkachman 53bba59a4f dbl -> toDouble
2012-02-22 13:14:41 +02:00

35 lines
636 B
Kotlin

package test.collections
import std.*
import std.io.*
import std.util.*
import stdhack.test.*
import java.util.*
import java.io.*
class OldStdlibTest() : TestSupport() {
fun testCollectionEmpty() {
assertNot {
Arrays.asList(0, 1, 2)?.empty ?: false
}
}
fun testCollectionSize() {
assert {
Arrays.asList(0, 1, 2)?.size == 3
}
}
fun testInputStreamIterator() {
val x = ByteArray (10)
for(index in 0..9) {
x [index] = index.toByte()
}
for(b in x.inputStream) {
System.out?.println(b)
}
}
}