Skip to content

Commit 126f8fc

Browse files
committed
Move files to correct directory
1 parent d4c8c3b commit 126f8fc

File tree

10 files changed

+13
-16
lines changed

10 files changed

+13
-16
lines changed

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

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

33
import org.junit.Test
44

5-
import scala.collection.mutable.{ArrayBuffer, Builder, ListBuffer}
6-
import scala.collection.immutable.{HashMap, List, TreeMap, TreeSet}
75
import scala.collection.compat._
6+
import scala.collection.immutable.{HashMap, List, TreeMap, TreeSet}
7+
import scala.collection.mutable.{ArrayBuffer, Builder, ListBuffer}
88

99
// Tests copied from the 2.13 scala-library
1010
class BuildFromTest {

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

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

3-
import java.util
4-
5-
import org.junit.Test
63
import org.junit.Assert._
4+
import org.junit.Test
75

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

119
class CollectionTest {
1210
@Test
@@ -20,9 +18,9 @@ class CollectionTest {
2018
val aT: Array[Int] = a
2119
assertEquals(Vector(1,2,3), a.toVector)
2220

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

2725
val ys = List(1 -> "a", 2 -> "b")
2826
val m = ys.to(Map)
@@ -39,9 +37,9 @@ class CollectionTest {
3937
val vT: Vector[Int] = v
4038
assertEquals(Vector(1,2,3), v)
4139

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

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

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

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

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

5-
import scala.collection.{BitSet, Factory, Iterable, immutable, mutable}
65
import scala.collection.compat._
76

87
class FactoryTest {

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

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

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

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

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

33
import org.junit.Test
44

0 commit comments

Comments
 (0)