Skip to content

Commit 18b9a0a

Browse files
authored
Merge pull request scala#6753 from som-snytt/issue/unignore-SD301
Revert SD-301 to improve skip count in test
2 parents 627b122 + 6e7d26c commit 18b9a0a

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

test/junit/scala/collection/IndexedSeqTest.scala

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
package scala.collection
22

33
import org.junit.Test
4-
import org.junit.Ignore
5-
import org.junit.Assert.{assertEquals, _}
4+
import org.junit.Assert._
65
import org.junit.runner.RunWith
76
import org.junit.runners.JUnit4
87

9-
// with the Ant JUnit runner, it's necessary to @Ignore the abstract
10-
// classes here, or JUnit tries to instantiate them. the annotations
11-
// can be removed when this is merged forward (TODO 2.12.x)
12-
138
/**
149
* base class for testing common methods on a various implementations
1510
*
1611
* @tparam T the collection type
1712
* @tparam E the element type
1813
*/
1914
@RunWith(classOf[JUnit4])
20-
@Ignore
2115
abstract class IndexedTest[T, E] {
2216

2317
protected def size = 10
@@ -317,7 +311,6 @@ package IndexedTestImpl {
317311
def toType(n: Int)= if ((n & 0) == 0) null else BoxedUnit.UNIT
318312
}
319313

320-
@Ignore
321314
abstract class ArrayTest[E] (
322315
//the object or primitive type of the array
323316
val TYPE: Class[_]) extends IndexedTest[Array[E], E]{
@@ -348,8 +341,6 @@ package IndexedTestImpl {
348341
}
349342
}
350343

351-
352-
@Ignore
353344
abstract class ArraySeqTest[E](
354345
//the object or primitive type of the array
355346
val TYPE: Class[_]) extends IndexedTest[mutable.ArraySeq[E], E] with DataProvider[E]{
@@ -383,7 +374,6 @@ package IndexedTestImpl {
383374

384375
//construct the data using java as much as possible to avoid invalidating the test
385376

386-
@Ignore
387377
abstract class MutableIndexedSeqTest[T <: mutable.Seq[E], E] extends IndexedTest[T, E] with DataProvider[E]{
388378
override final def length(underTest: T) = underTest.length
389379

@@ -413,7 +403,7 @@ package IndexedTestImpl {
413403
}
414404

415405
}
416-
@Ignore
406+
417407
abstract class ImmutableIndexedSeqTest[T <: SeqOps[E, Seq, T], E] extends IndexedTest[T, E] with DataProvider[E] {
418408
override final def length(underTest: T) = underTest.length
419409

@@ -434,7 +424,7 @@ package IndexedTestImpl {
434424
}
435425

436426
}
437-
@Ignore
427+
438428
abstract class StringOpsBaseTest extends IndexedTest[StringOps, Char] with DataProvider[Char] {
439429
override final def length(underTest: StringOps) = underTest.size
440430

test/junit/scala/collection/immutable/LazyListTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package scala.collection.immutable
22

3-
import scala.collection.Iterator
43
import org.junit.runner.RunWith
54
import org.junit.runners.JUnit4
6-
import org.junit.{Test, Ignore}
5+
import org.junit.Test
76
import org.junit.Assert._
87

8+
import scala.collection.Iterator
99
import scala.ref.WeakReference
1010
import scala.util.Try
1111

test/junit/scala/tools/nsc/symtab/CannotHaveAttrsTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CannotHaveAttrsTest {
4747
assertEquals(t.tpe, NoType)
4848
}
4949

50-
@Test @org.junit.Ignore // scala/bug#8816
50+
@Test @org.junit.Ignore("scala/bug#8816")
5151
def nonDefaultPosAssignmentFails = {
5252
val pos = new OffsetPosition(null, 0)
5353
attrlessTrees.foreach { t =>
@@ -56,7 +56,7 @@ class CannotHaveAttrsTest {
5656
}
5757
}
5858

59-
@Test @org.junit.Ignore // scala/bug#8816
59+
@Test @org.junit.Ignore("scala/bug#8816")
6060
def nonDefaultTpeAssignmentFails = {
6161
val tpe = typeOf[Int]
6262
attrlessTrees.foreach { t =>

0 commit comments

Comments
 (0)