diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-05 17:43:55 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-06 13:54:36 +0200 |
commit | d42f4fee8717a91c845b6b8e1eaa053927f4b7e9 (patch) | |
tree | 588b3c901dd884a52726490cb0c8fab6a78d4d33 /tests | |
parent | 1521121b573c9e4766fd66c080d44c9af099b438 (diff) | |
download | dotty-d42f4fee8717a91c845b6b8e1eaa053927f4b7e9.tar.gz dotty-d42f4fee8717a91c845b6b8e1eaa053927f4b7e9.tar.bz2 dotty-d42f4fee8717a91c845b6b8e1eaa053927f4b7e9.zip |
Tweaks to conform with API set out in #818.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/CollectionTests.scala | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/run/CollectionTests.scala b/tests/run/CollectionTests.scala index 0421cfbe4..3cf611f49 100644 --- a/tests/run/CollectionTests.scala +++ b/tests/run/CollectionTests.scala @@ -14,7 +14,7 @@ object Test { val y3: Int = x3 val x4 = xs.head val y4: Int = x4 - val x5 = xs.collect(List) + val x5 = xs.collectAs(List) val y5: List[Int] = x5 val (xs6, xs7) = xs.partition(_ % 2 == 0) val ys6: Seq[Int] = xs6 @@ -65,7 +65,7 @@ object Test { val y3: Int = x3 val x4 = xs.head val y4: Int = x4 - val x5 = xs.collect(List) + val x5 = xs.collectAs(List) val y5: List[Int] = x5 val (xs6, xs7) = xs.partition(_ % 2 == 0) val ys6: View[Int] = xs6 @@ -92,16 +92,16 @@ object Test { println(x3) println(x4) println(x5) - println(xs6.collect(List)) - println(xs7.collect(List)) - println(xs8.collect(List)) - println(xs9.collect(List)) - println(xs10.collect(List)) - println(xs11.collect(List)) - println(xs12.collect(List)) - println(xs13.collect(List)) - println(xs14.collect(List)) - println(xs15.collect(List)) + println(xs6.collectAs(List)) + println(xs7.collectAs(List)) + println(xs8.collectAs(List)) + println(xs9.collectAs(List)) + println(xs10.collectAs(List)) + println(xs11.collectAs(List)) + println(xs12.collectAs(List)) + println(xs13.collectAs(List)) + println(xs14.collectAs(List)) + println(xs15.collectAs(List)) } def stringOps(xs: String) = { @@ -113,7 +113,7 @@ object Test { val y3: Int = x3 val x4 = xs.head val y4: Int = x4 - val x5 = xs.collect(List) + val x5 = xs.collectAs(List) val y5: List[Char] = x5 val (xs6, xs7) = xs.partition(_ % 2 == 0) val ys6: String = xs6 @@ -160,7 +160,7 @@ object Test { def main(args: Array[String]) = { val ints = Cons(1, Cons(2, Cons(3, Nil))) - val intsBuf = ints.collect(ArrayBuffer) + val intsBuf = ints.collectAs(ArrayBuffer) val intsView = ints.view seqOps(ints) seqOps(intsBuf) |