summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorTiark Rompf <tiark.rompf@epfl.ch>2009-10-21 21:17:09 +0000
committerTiark Rompf <tiark.rompf@epfl.ch>2009-10-21 21:17:09 +0000
commit991c819cb54c40fbc0553a82bb4450ced648c61d (patch)
treef56e3dcf937a5283ce8ed9a251d3bf1e5de24abc /test/files/run
parent2816f2e6ce51206b3b5bdb1367203bf688625cb6 (diff)
downloadscala-991c819cb54c40fbc0553a82bb4450ced648c61d.tar.gz
scala-991c819cb54c40fbc0553a82bb4450ced648c61d.tar.bz2
scala-991c819cb54c40fbc0553a82bb4450ced648c61d.zip
built new starr and fixed test cases
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/colltest1.scala2
-rw-r--r--test/files/run/sequenceComparisons.scala2
-rw-r--r--test/files/run/t2074_2.check6
-rw-r--r--test/files/run/t2074_2.scala11
4 files changed, 11 insertions, 10 deletions
diff --git a/test/files/run/colltest1.scala b/test/files/run/colltest1.scala
index efdce00277..1ce73396f0 100644
--- a/test/files/run/colltest1.scala
+++ b/test/files/run/colltest1.scala
@@ -215,7 +215,7 @@ object Test extends Application {
sequenceTest(LinearSeq())
// sequenceTest(mutable.LinearSeq())
sequenceTest(immutable.LinearSeq())
- sequenceTest(mutable.Vector())
+ sequenceTest(mutable.IndexedSeq())
rangeTest(1 to 10)
setTest(Set())
diff --git a/test/files/run/sequenceComparisons.scala b/test/files/run/sequenceComparisons.scala
index 3ce08fb2e1..30192096db 100644
--- a/test/files/run/sequenceComparisons.scala
+++ b/test/files/run/sequenceComparisons.scala
@@ -24,7 +24,7 @@ object Test {
mutable.Seq(_: _*),
// immutable.Stack(_: _*),
// mutable.Stack(_: _*),
- immutable.Vector(_: _*),
+ immutable.IndexedSeq(_: _*), // was Vector
//mutable.Vector(_: _*),
immutable.List(_: _*),
immutable.Stream(_: _*)
diff --git a/test/files/run/t2074_2.check b/test/files/run/t2074_2.check
index 416b327bd0..eb1f072de3 100644
--- a/test/files/run/t2074_2.check
+++ b/test/files/run/t2074_2.check
@@ -1,3 +1,3 @@
-VectorView(1, 2, 3)
-VectorView(1, 2, 3)
-VectorViewZ((1,1), (2,2), (3,3))
+IndexedSeqView(1, 2, 3)
+IndexedSeqView(1, 2, 3)
+IndexedSeqViewZ((1,1), (2,2), (3,3))
diff --git a/test/files/run/t2074_2.scala b/test/files/run/t2074_2.scala
index 24fa6c7601..7d1d8181d8 100644
--- a/test/files/run/t2074_2.scala
+++ b/test/files/run/t2074_2.scala
@@ -1,13 +1,14 @@
-import scala.collection.immutable.Vector
-import scala.collection.VectorView
+// replaced all occurrences of 'Vector' with 'IndexedSeq'
+import scala.collection.immutable.IndexedSeq
+import scala.collection.IndexedSeqView
object Test {
- val v = new VectorView[Int, Vector[Int]] {
- def underlying = Vector(1,2,3)
+ val v = new IndexedSeqView[Int, IndexedSeq[Int]] {
+ def underlying = IndexedSeq(1,2,3)
def apply(idx: Int) = underlying(idx)
def length = underlying.length
}
- val w = Vector(1, 2, 3).view
+ val w = IndexedSeq(1, 2, 3).view
def main(args: Array[String]): Unit = {
println(v)