another "temporary" hack

I heard of some package merging problems, testlib declares std.test package,
and stdlib.jar has std package
This commit is contained in:
Stepan Koltsov
2012-01-18 12:08:11 +04:00
parent 6283f5d829
commit ff74f8217b
11 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -32,4 +32,4 @@ TODO try use delegation here to make sure we implement all the methods in the Tr
class ListImpl<T>(coll: ArrayList<out T>) : Traversable<T> by coll {
}
*/
*/
+2 -2
View File
@@ -5,7 +5,7 @@ package test.collections
import std.*
import std.io.*
import std.util.*
import std.test.*
import stdhack.test.*
import java.util.*
class CollectionTest() : TestSupport() {
@@ -268,4 +268,4 @@ class CollectionTest() : TestSupport() {
// assertTrue(IterableWrapper(hashSet(45, 14, 13)).contains(14))
// assertFalse(IterableWrapper(linkedList<Int>()).contains(15))
}
}
}
+1 -1
View File
@@ -80,4 +80,4 @@ fun main(args: Array<String>) {
generateFile(File(outDir, "StandardFromJavaCollections.kt"), "package std", File(srcDir, "JavaCollections.kt")) {
it.replaceAll("java.util.Collection<T>", "Iterable<T>").replaceAll("(this.size)", "")
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
package test.collections
import std.test.*
import stdhack.test.*
import std.io.*
import std.util.*
+2 -2
View File
@@ -1,6 +1,6 @@
package test.collections
import std.test.*
import stdhack.test.*
// TODO can we avoid importing all this stuff by default I wonder?
// e.g. making println and the collection builder methods public by default?
@@ -27,4 +27,4 @@ class ListTest() : TestSupport() {
val t = data.last
assertEquals("bar", t)
}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
package test.collections
import std.test.*
import stdhack.test.*
// TODO can we avoid importing all this stuff by default I wonder?
// e.g. making println and the collection builder methods public by default?
@@ -49,4 +49,4 @@ class MapTest() : TestSupport() {
assertEquals(map.size(), 1)
assertEquals("James", map["name"])
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ package test.collections
import std.*
import std.io.*
import std.util.*
import std.test.*
import stdhack.test.*
import java.util.*
import java.io.*
+2 -2
View File
@@ -3,7 +3,7 @@ package test.collections
import std.*
import std.io.*
import std.util.*
import std.test.*
import stdhack.test.*
import java.util.*
class SetTest() : TestSupport() {
@@ -67,4 +67,4 @@ class SetTest() : TestSupport() {
assertEquals(arrayList(3, 3), lengths)
}
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
package test.collections
import std.*
import std.test.*
import stdhack.test.*
class StandardCollectionTest() : TestSupport() {
@@ -21,4 +21,4 @@ class StandardCollectionTest() : TestSupport() {
}
}
*/
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
package std.test
package stdhack.test
import std.io.*
import std.util.*
@@ -149,4 +149,4 @@ class KotlinTestRunner() : Runner() {
// TODO no annotations yet?
//@RunWith(KotlinTestRunner)
abstract class TestSupport() : TestCase() {
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
package testDslExample
import std.io.*
import std.test.*
import stdhack.test.*
import junit.framework.*
import junit.textui.TestRunner