summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2009-05-27 19:35:02 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2009-05-27 19:35:02 +0000
commitcc5e79c9ec9cea8d0f22020b528877d8f6e00153 (patch)
tree94e43f77c7b7271b3d0b6f9fb7372ae83b39360d /test/pending
parent4b8be5d8bec86358276407d6521c41702ccda835 (diff)
downloadscala-cc5e79c9ec9cea8d0f22020b528877d8f6e00153.tar.gz
scala-cc5e79c9ec9cea8d0f22020b528877d8f6e00153.tar.bz2
scala-cc5e79c9ec9cea8d0f22020b528877d8f6e00153.zip
In "Iterable" and in all its subclasses, "itera...
In "Iterable" and in all its subclasses, "iterator" replaces "elements" (and assorted changes).
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/jvm/serialization.scala4
-rw-r--r--test/pending/pos/bug586.scala2
-rw-r--r--test/pending/run/t1044.scala2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/pending/jvm/serialization.scala b/test/pending/jvm/serialization.scala
index 589e82c4c1..2c46ee0b7b 100644
--- a/test/pending/jvm/serialization.scala
+++ b/test/pending/jvm/serialization.scala
@@ -39,7 +39,7 @@ object Serialize {
object Test1_scala {
private def arrayToString[A](arr: Array[A]): String =
- List.fromArray(arr).mkString("Array[",",","]")
+ arr.mkString("Array[",",","]")
private def arrayEquals[A, B](a1: Array[A], a2: Array[B]) =
(a1.length == a2.length) &&
@@ -225,7 +225,7 @@ object Test4_xml {
<th>Last Name</th>
<th>First Name</th>
</tr>
- { for (val p <- people) yield
+ { for (p <- people) yield
<tr>
<td> { p.name } </td>
<td> { p.age.toString() } </td>
diff --git a/test/pending/pos/bug586.scala b/test/pending/pos/bug586.scala
index ca0a508baa..b736e6ab43 100644
--- a/test/pending/pos/bug586.scala
+++ b/test/pending/pos/bug586.scala
@@ -11,7 +11,7 @@ with imm.Set[A]
def +(elem: A) = new HashTreeSet(map + elem -> ())
def -(elem: A) = new HashTreeSet(map - elem)
def contains(elem: A) = map.isDefinedAt(elem)
- def elements = map.elements.map(._1)
+ def iterator = map.iterator.map(._1)
def empty:imm.Set[A] = new HashTreeSet[A]()
}
diff --git a/test/pending/run/t1044.scala b/test/pending/run/t1044.scala
index 136cc51af2..e10002e601 100644
--- a/test/pending/run/t1044.scala
+++ b/test/pending/run/t1044.scala
@@ -1,4 +1,4 @@
object Main extends Application{
val ducks = Array[AnyRef]("Huey", "Dewey", "Louie")
- ducks.elements/*.asInstanceOf[Iterator[String]]*/
+ ducks.iterator/*.asInstanceOf[Iterator[String]]*/
}