diff options
author | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-03-31 12:20:41 +0000 |
---|---|---|
committer | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-03-31 12:20:41 +0000 |
commit | ad036896d8ceff4ada884911140b6d245cfe9204 (patch) | |
tree | 2eb5fcbe14006e48a13c37263edd31ac92e4c630 /test/files/run | |
parent | e7e15da74c1c9a81f419b640c79c636e704b8ed5 (diff) | |
download | scala-ad036896d8ceff4ada884911140b6d245cfe9204.tar.gz scala-ad036896d8ceff4ada884911140b6d245cfe9204.tar.bz2 scala-ad036896d8ceff4ada884911140b6d245cfe9204.zip |
closes #3203, overriding more of the Traversabl...
closes #3203, overriding more of the TraversableLike methods. also
tightened access privileges to internal fields and methods. review by
community.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/vector1.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/vector1.scala b/test/files/run/vector1.scala index 320bef220c..e8785e2b16 100644 --- a/test/files/run/vector1.scala +++ b/test/files/run/vector1.scala @@ -22,7 +22,7 @@ object Test { def vectorForward(label: String, n: Int): Vector[String] = { var a: Vector[String] = Vector.empty for (i <- 0 until n) - a = a.appendBack(label + i) + a = a :+ (label + i) assertVector(a, label, 0, n) } @@ -30,7 +30,7 @@ object Test { def vectorBackward(label: String, n: Int): Vector[String] = { var a: Vector[String] = Vector.empty for (i <- 0 until n) - a = a.appendFront(label + (n-1-i)) + a = (label + (n-1-i)) +: a assertVector(a, label, 0, n) } @@ -92,8 +92,8 @@ object Test { def nextChunkSize = 3 //rand.nextInt(chunkLimit) - def seqBack() = for (i <- 0 until Math.min(nextChunkSize, N-max)) { a = a.appendBack("a"+max); max += 1 } - def seqFront() = for (i <- 0 until Math.min(nextChunkSize, min)) { min -= 1; a = a.appendFront("a"+min) } + def seqBack() = for (i <- 0 until Math.min(nextChunkSize, N-max)) { a = a :+ ("a"+max); max += 1 } + def seqFront() = for (i <- 0 until Math.min(nextChunkSize, min)) { min -= 1; a = ("a"+min) +: a } try { @@ -104,7 +104,7 @@ object Test { } catch { case ex => //println("----------------") - a.debug + //a.debug throw ex } |