summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-22 00:16:03 +0000
committerPaul Phillips <paulp@improving.org>2010-02-22 00:16:03 +0000
commit6e061d6f2597a3e4bdc7fcf192abbdb419917b70 (patch)
treea1ec1f729ad5f548c4a18cdd4647bc6d0b181380 /test
parent91cdb1531656d9240e9ee64509ab528d727d1b51 (diff)
downloadscala-6e061d6f2597a3e4bdc7fcf192abbdb419917b70.tar.gz
scala-6e061d6f2597a3e4bdc7fcf192abbdb419917b70.tar.bz2
scala-6e061d6f2597a3e4bdc7fcf192abbdb419917b70.zip
Some deprecation patrol and minor cleanups.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/bug432.scala2
-rw-r--r--test/files/run/iterators.scala4
-rw-r--r--test/files/run/lists.scala4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/files/pos/bug432.scala b/test/files/pos/bug432.scala
index 8e3097ac9d..087fd70aba 100644
--- a/test/files/pos/bug432.scala
+++ b/test/files/pos/bug432.scala
@@ -1,2 +1,2 @@
-case class Tata
+case class Tata()
object Tata
diff --git a/test/files/run/iterators.scala b/test/files/run/iterators.scala
index 5879d38df3..b7dc16237a 100644
--- a/test/files/run/iterators.scala
+++ b/test/files/run/iterators.scala
@@ -93,8 +93,8 @@ object Test {
}
def check_findIndexOf: String = {
- val i = List(1, 2, 3, 4, 5).findIndexOf { x: Int => x >= 4 }
- val j = List(1, 2, 3, 4, 5).findIndexOf { x: Int => x >= 16 }
+ val i = List(1, 2, 3, 4, 5).indexWhere { x: Int => x >= 4 }
+ val j = List(1, 2, 3, 4, 5).indexWhere { x: Int => x >= 16 }
"" + i + "x" + j
}
diff --git a/test/files/run/lists.scala b/test/files/run/lists.scala
index 695d5a0336..6c9b55961e 100644
--- a/test/files/run/lists.scala
+++ b/test/files/run/lists.scala
@@ -126,8 +126,8 @@ object Test1 extends TestCase("ctor") with Assert {
assertEquals("check_forall", true, b1 & b2)
}
{
- val ys1 = xs1 remove { e => e % 2 != 0 }
- val ys2 = xs4 remove { e => e < 5 }
+ val ys1 = xs1 filterNot { e => e % 2 != 0 }
+ val ys2 = xs4 filterNot { e => e < 5 }
assertEquals("check_remove", 3, ys1.length + ys2.length)
}
{