Skip to content

Commit acf9f39

Browse files
committed
Move tests to 'test' package
1 parent 9ac619f commit acf9f39

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

src/test/scala/scala/collection/BuildFromTest.scala renamed to src/test/scala/test/scala/collection/BuildFromTest.scala

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

33
import org.junit.Test
44

55
import scala.collection.compat._
6-
import scala.collection.immutable.{HashMap, List, TreeMap, TreeSet}
6+
import scala.collection.immutable.{HashMap, TreeMap, TreeSet}
77
import scala.collection.mutable.{ArrayBuffer, Builder, ListBuffer}
8+
import scala.collection.{BitSet, BuildFrom, SortedMap, SortedSet, immutable, mutable}
89

910
// Tests copied from the 2.13 scala-library
1011
class BuildFromTest {

src/test/scala/scala/collection/CollectionTest.scala renamed to src/test/scala/test/scala/collection/CollectionTest.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package scala.collection
1+
package test.scala.collection
22

33
import org.junit.Assert._
44
import org.junit.Test
55

66
import scala.collection.compat._
7-
import scala.collection.immutable.{BitSet => BS} // importing BitSet doesn't work, scala.collection.BitSet shadows it
7+
import scala.collection.immutable.BitSet
88

99
class CollectionTest {
1010
@Test
@@ -18,9 +18,9 @@ class CollectionTest {
1818
val aT: Array[Int] = a
1919
assertEquals(Vector(1,2,3), a.toVector)
2020

21-
val b = xs.to(BS) // we can fake a type constructor for the 2 standard BitSet types
21+
val b = xs.to(BitSet) // we can fake a type constructor for the 2 standard BitSet types
2222
val bT: BitSet = b
23-
assertEquals(BS(1,2,3), b)
23+
assertEquals(BitSet(1,2,3), b)
2424

2525
val ys = List(1 -> "a", 2 -> "b")
2626
val m = ys.to(Map)
@@ -37,9 +37,9 @@ class CollectionTest {
3737
val vT: Vector[Int] = v
3838
assertEquals(Vector(1,2,3), v)
3939

40-
val b = BS.fromSpecific(xs)
41-
val bT: BS = b
42-
assertEquals(BS(1,2,3), b)
40+
val b = BitSet.fromSpecific(xs)
41+
val bT: BitSet = b
42+
assertEquals(BitSet(1,2,3), b)
4343

4444
val ys = List(1 -> "a", 2 -> "b")
4545
val m = Map.from(ys)

src/test/scala/scala/collection/FactoryTest.scala renamed to src/test/scala/test/scala/collection/FactoryTest.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
package scala.collection
1+
package test.scala.collection
22

33
import org.junit.{Assert, Test}
44

55
import scala.collection.compat._
6+
import scala.collection.{BitSet, Factory, immutable, mutable}
67

78
class FactoryTest {
89

910
implicitly[Factory[Char, String]]
1011
implicitly[Factory[Char, Array[Char]]]
11-
implicitly[Factory[Int, BitSet]]
12+
implicitly[Factory[Int, collection.BitSet]]
1213
implicitly[Factory[Int, mutable.BitSet]]
1314
implicitly[Factory[Int, immutable.BitSet]]
1415

src/test/scala/scala/collection/ImmutableArrayTest.scala renamed to src/test/scala/test/scala/collection/ImmutableArrayTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scala.collection
1+
package test.scala.collection
22

33
import org.junit.{Assert, Test}
44

src/test/scala/scala/collection/StreamTest.scala renamed to src/test/scala/test/scala/collection/StreamTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scala.collection
1+
package test.scala.collection
22

33
import org.junit.Test
44

src/test/scala/scala/collection/generic/SortedTest.scala renamed to src/test/scala/test/scala/collection/generic/SortedTest.scala

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

3-
import org.junit.Test
43
import org.junit.Assert._
4+
import org.junit.Test
55

66
import scala.collection.compat._
77
import scala.collection.{immutable => i, mutable => m}

0 commit comments

Comments
 (0)