summaryrefslogtreecommitdiff
path: root/test/files/pos/spec-arrays.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-06 00:42:50 +0000
committerPaul Phillips <paulp@improving.org>2010-04-06 00:42:50 +0000
commit3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18 (patch)
tree645c05a441a60a8620eb67ac89b61d4abd9946b7 /test/files/pos/spec-arrays.scala
parentb6f8761f03174a7a62ae3869685a5bd5ce56f45e (diff)
downloadscala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.tar.gz
scala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.tar.bz2
scala-3b8ee6d4a95eb417b9e4eb944afb8d36bc913e18.zip
Fix for the partest task to fail the build when...
Fix for the partest task to fail the build when a test fails, and fixes for 2/3 of the quietly failing tests. I'm not quite sure what to do about the view ones, it doesn't look like a simple rename is going to cut it, so: review by odersky.
Diffstat (limited to 'test/files/pos/spec-arrays.scala')
-rw-r--r--test/files/pos/spec-arrays.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/spec-arrays.scala b/test/files/pos/spec-arrays.scala
index c1f253a39d..96c75dd8de 100644
--- a/test/files/pos/spec-arrays.scala
+++ b/test/files/pos/spec-arrays.scala
@@ -30,7 +30,7 @@ final class IntArray(arr: Array[Int]) extends AbsArray[Int] {
def length: Int = arr.length
}
-final class GenericArray[T](arr: Array[T]) extends AbsArray[T] {
+final class ArraySeq[T](arr: Array[T]) extends AbsArray[T] {
def apply(idx: Int): T = arr(idx)
def update(idx: Int, elem: T) = arr(idx) = elem
def length: Int = arr.length
@@ -96,7 +96,7 @@ class ScalaSpec2Test extends Test {
}
class ScalaWrapTest extends Test {
- val arr: AbsArray[Int] = new GenericArray(new Array[Int](1000))
+ val arr: AbsArray[Int] = new ArraySeq(new Array[Int](1000))
def sum(): Int = {
var acc = 0
@@ -116,7 +116,7 @@ class ScalaWrapTest extends Test {
}
class ScalaGenTest extends Test {
- val arr: AbsArray[Integer] = new GenericArray(new Array[Integer](1000))
+ val arr: AbsArray[Integer] = new ArraySeq(new Array[Integer](1000))
for (i <- 0 until arr.length) arr(i) = new Integer(0)
def sum(): Int = {