moved the stdlib tests into the same directory as the stdlib, so it works a bit better with maven support in IDEA

This commit is contained in:
James Strachan
2012-03-14 16:14:04 +00:00
parent 9cd21d3a4d
commit 7ef65c0099
35 changed files with 2 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
package test.collections
import kotlin.*
import kotlin.io.*
import kotlin.util.*
import kotlin.test.*
import java.util.*
import java.io.*
import junit.framework.TestCase
class OldStdlibTest() : TestCase() {
fun testCollectionEmpty() {
assertNot {
Arrays.asList(0, 1, 2)?.empty ?: false
}
}
fun testCollectionSize() {
assertTrue {
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)
}
}
}