diff options
Diffstat (limited to 'test/files/run/t4294.scala')
-rw-r--r-- | test/files/run/t4294.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/files/run/t4294.scala b/test/files/run/t4294.scala index 588fa90f76..50c83ac819 100644 --- a/test/files/run/t4294.scala +++ b/test/files/run/t4294.scala @@ -1,9 +1,7 @@ - - - - object Test { def main(args: Array[String]) { (Stream.from(1).collect{case x if x > 5000000 => x}: Stream[Int]) + + assert((Stream from 1 take 10 collect { case x if x <= 3 => x*x }).sum == 14) } } |