summaryrefslogtreecommitdiff
path: root/test/pending/run/collections.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-02 22:43:10 +0000
committerPaul Phillips <paulp@improving.org>2010-10-02 22:43:10 +0000
commit06aa1c9eff49d5190e82a72a876d7b3bd706d6d4 (patch)
tree4c38f2559c839ba297060a48023d69550c5d107e /test/pending/run/collections.scala
parent256aca612204f1316e5281af6d10a14300d58ad1 (diff)
downloadscala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.gz
scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.bz2
scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.zip
Sorting through the tests in pending from oldes...
Sorting through the tests in pending from oldest to newest because I don't believe in having useless appendages. The verdict on the oldest fifteen tests is: 15/15 are fixed. Many were already in files under a different name. I moved a few and deleted the rest. Fun fact of the day: apparently there was a time when to call into java varargs with no arguments you might have to write something like: getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]()) On this basis I retract any complaints I've ever had about anything. There is one question mark outlined in pos/testCoercionThis.scala, a file formerly called pos/moors.scala and therefore... review by moors.
Diffstat (limited to 'test/pending/run/collections.scala')
-rw-r--r--test/pending/run/collections.scala30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/pending/run/collections.scala b/test/pending/run/collections.scala
index 6717b524bb..16a3ddb370 100644
--- a/test/pending/run/collections.scala
+++ b/test/pending/run/collections.scala
@@ -4,15 +4,15 @@ object Test extends Application {
val printTime = false
- def sum[A](xs: Iterable[int]) = (0 /: xs)((x, y) => x + y)
+ def sum[A](xs: Iterable[Int]) = (0 /: xs)((x, y) => x + y)
- def time(op: => unit): unit = {
+ def time(op: => Unit): Unit = {
val start = System.currentTimeMillis;
op
if (printTime) Console.println(" time = "+(System.currentTimeMillis - start)+"ms")
}
- def test(msg: String, s0: collection.immutable.Set[int]) = {
+ def test(msg: String, s0: collection.immutable.Set[Int]) = {
Console.println("***** "+msg+":")
var s = s0
s = s + 2
@@ -30,7 +30,7 @@ object Test extends Application {
}
}
- def test(msg: String, s0: collection.mutable.Set[int]) = {
+ def test(msg: String, s0: collection.mutable.Set[Int]) = {
Console.println("***** "+msg+":")
var s = s0
s = s + 2
@@ -48,7 +48,7 @@ object Test extends Application {
}
}
- def test(msg: String, s0: collection.immutable.Map[int, int]) = {
+ def test(msg: String, s0: collection.immutable.Map[Int, Int]) = {
Console.println("***** "+msg+":")
var s = s0
s = s + (2 -> 2)
@@ -69,7 +69,7 @@ object Test extends Application {
}
}
- def test(msg: String, s0: collection.mutable.Map[int, int]) = {
+ def test(msg: String, s0: collection.mutable.Map[Int, Int]) = {
Console.println("***** "+msg+":")
var s = s0
s = s + (2 -> 2)
@@ -90,13 +90,13 @@ object Test extends Application {
}
}
- test("immutable.ListSet", new immutable.ListSet[int])
- test("immutable.TreeSet", new immutable.TreeSet[int])
- test("mutable.HashSet", new mutable.HashSet[int])
- test("immutable.ListMap", new immutable.ListMap[int, int])
- test("immutable.TreeMap", new immutable.TreeMap[int, int])
- test("immutable.UnBalancedTreeMap", new immutable.UnbalancedTreeMap[int, int])
- test("immutable.HashTreeSet", new immutable.HashTreeSet[int])
- test("immutable.HashTreeMap", new immutable.HashTreeMap[int, int])
- test("mutable.HashMap", new mutable.HashMap[int, int])
+ test("immutable.ListSet", new immutable.ListSet[Int])
+ test("immutable.TreeSet", new immutable.TreeSet[Int])
+ test("mutable.HashSet", new mutable.HashSet[Int])
+ test("immutable.ListMap", new immutable.ListMap[Int, Int])
+ test("immutable.TreeMap", new immutable.TreeMap[Int, Int])
+ test("immutable.UnBalancedTreeMap", new immutable.UnbalancedTreeMap[Int, Int])
+ test("immutable.HashTreeSet", new immutable.HashTreeSet[Int])
+ test("immutable.HashTreeMap", new immutable.HashTreeMap[Int, Int])
+ test("mutable.HashMap", new mutable.HashMap[Int, Int])
}