Skip to content
This repository
Browse code

Also check that Stream.toSeq gives the right result.

  • Loading branch information...
commit e3bb6bac5bf94d81b0c1d97eebce7f5952bbbc61 1 parent 33cdba5
Paolo G. Giarrusso Blaisorblade authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 test/files/run/stream-stack-overflow-filter-map.scala
4 test/files/run/stream-stack-overflow-filter-map.scala
@@ -37,6 +37,8 @@ object Test extends App {
37 37
38 38 //Complete test case for withFilter + map/flatMap, as requested by @axel22.
39 39 for (j <- (0 to 3) :+ 10000) {
40   - testStream((1 to j).toStream)
  40 + val stream = (1 to j).toStream
  41 + assert(stream.toSeq == (1 to j).toSeq)
  42 + testStream(stream)
41 43 }
42 44 }

0 comments on commit e3bb6ba

Please sign in to comment.
Something went wrong with that request. Please try again.