Move close to other stdlib tests

This commit is contained in:
Maxim Shafirov
2011-12-30 19:29:29 +04:00
parent db7e2b0871
commit b8590ada4f
4 changed files with 36 additions and 37 deletions
+34
View File
@@ -0,0 +1,34 @@
package test.collections
import std.*
import std.io.*
import std.util.*
import std.test.*
import java.util.*
import java.io.*
class OldStdlibTest() : TestSupport() {
fun testCollectionEmpty() {
assert {
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.byt
}
for(b in x.inputStream) {
System.out?.println(b)
}
}
}
+2 -2
View File
@@ -6,8 +6,8 @@ import junit.framework.TestSuite;
*/
public class TestAll {
public static TestSuite suite() {
TestSuite suite = new TestSuite(CollectionTest.class, IoTest.class, ListTest.class, MapTest.class, SetTest.class);
TestSuite suite = new TestSuite(CollectionTest.class, IoTest.class, ListTest.class, MapTest.class, SetTest.class, OldStdlibTest.class);
suite.addTest(testDslExample.namespace.getSuite());
return suite;
}
}
}