aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t2813.2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t2813.2.scala')
-rw-r--r--tests/pending/run/t2813.2.scala39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/pending/run/t2813.2.scala b/tests/pending/run/t2813.2.scala
deleted file mode 100644
index d228eed90..000000000
--- a/tests/pending/run/t2813.2.scala
+++ /dev/null
@@ -1,39 +0,0 @@
-import java.util.LinkedList
-import collection.JavaConversions._
-
-object Test extends dotty.runtime.LegacyApp {
- def assertListEquals[A](expected: List[A], actual: Seq[A]): Unit = {
- assert(expected.sameElements(actual),
- "Expected list to contain " + expected.mkString("[", ", ", "]") +
- ", but was " + actual.mkString("[", ", ", "]"))
- }
-
- def addAllOfNonCollectionWrapperAtZeroOnEmptyLinkedList(): Unit = {
- val l = new LinkedList[Int]
- l.addAll(0, List(1, 2))
- assertListEquals(List(1, 2), l)
- }
-
- def addAllOfNonCollectionWrapperAtZeroOnLinkedList(): Unit = {
- val l = new LinkedList[Int] += 1 += 2
- l.addAll(0, List(10, 11))
- assertListEquals((List(10, 11, 1, 2)), l)
- }
-
- def addAllOfCollectionWrapperAtZeroOnLinkedList(): Unit = {
- val l = new LinkedList[Int] += 1 += 2
- l.addAll(0, new LinkedList[Int] += 10 += 11)
- assertListEquals((List(10, 11, 1, 2)), l)
- }
-
- def addAllOfCollectionWrapperAtZeroOnEmptyLinkedList(): Unit = {
- val l = new LinkedList[Int]
- l.addAll(0, new LinkedList[Int] += 10 += 11)
- assertListEquals((List(10, 11)), l)
- }
-
- addAllOfNonCollectionWrapperAtZeroOnEmptyLinkedList
- addAllOfNonCollectionWrapperAtZeroOnLinkedList
- addAllOfCollectionWrapperAtZeroOnEmptyLinkedList
- addAllOfCollectionWrapperAtZeroOnLinkedList
-}