aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t2813.2.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
commit73a93505c432b410ae39fb3c4d6168b2e49832ce (patch)
tree53d45141a7b93682bea6430b0fb6ab28c3c3fad3 /tests/pending/run/t2813.2.scala
parent89bacb9c25a58454ff1878e67f7ea07ffc8c269f (diff)
downloaddotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.gz
dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.bz2
dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.zip
Running rewrite tool on run tests.
Diffstat (limited to 'tests/pending/run/t2813.2.scala')
-rw-r--r--tests/pending/run/t2813.2.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/pending/run/t2813.2.scala b/tests/pending/run/t2813.2.scala
index f41f6451f..db9299c40 100644
--- a/tests/pending/run/t2813.2.scala
+++ b/tests/pending/run/t2813.2.scala
@@ -2,31 +2,31 @@ import java.util.LinkedList
import collection.JavaConversions._
object Test extends App {
- def assertListEquals[A](expected: List[A], actual: Seq[A]) {
+ 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() {
+ def addAllOfNonCollectionWrapperAtZeroOnEmptyLinkedList(): Unit = {
val l = new LinkedList[Int]
l.addAll(0, List(1, 2))
assertListEquals(List(1, 2), l)
}
- def addAllOfNonCollectionWrapperAtZeroOnLinkedList() {
+ 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() {
+ 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() {
+ def addAllOfCollectionWrapperAtZeroOnEmptyLinkedList(): Unit = {
val l = new LinkedList[Int]
l.addAll(0, new LinkedList[Int] += 10 += 11)
assertListEquals((List(10, 11)), l)