Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 3af1248

Browse files
committed
Rewrite for-comprehension to avoid calling .withFilter
1 parent 38efb75 commit 3af1248

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

library/src/test/scala/scala/tools/selectivecps/TestSuite.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,8 @@ class HigherOrder {
661661
@Test def t5472 = {
662662
val map = Map("foo" -> 1, "bar" -> 2)
663663
reset {
664-
val mapped =
665-
for {
666-
(location, accessors) <- new ContinuationizedParallelIterable(map)
667-
} yield {
668-
shiftUnit0[Int, Unit](23)
669-
}
664+
val mapped = new ContinuationizedParallelIterable(map)
665+
.map(strIntTpl => shiftUnit0[Int, Unit](23))
670666
assertEquals(List(23, 23), mapped.toList)
671667
}
672668
}

0 commit comments

Comments
 (0)