Skip to content
Browse files

Also check that Stream.toSeq gives the right result.

  • Loading branch information...
1 parent 33cdba5 commit e3bb6bac5bf94d81b0c1d97eebce7f5952bbbc61 @Blaisorblade Blaisorblade committed Aug 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/files/run/stream-stack-overflow-filter-map.scala
View
4 test/files/run/stream-stack-overflow-filter-map.scala
@@ -37,6 +37,8 @@ object Test extends App {
//Complete test case for withFilter + map/flatMap, as requested by @axel22.
for (j <- (0 to 3) :+ 10000) {
- testStream((1 to j).toStream)
+ val stream = (1 to j).toStream
+ assert(stream.toSeq == (1 to j).toSeq)
+ testStream(stream)
}
}

0 comments on commit e3bb6ba

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