Skip to content

Commit

Permalink
Also check that Stream.toSeq gives the right result.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaisorblade committed Aug 22, 2012
1 parent 33cdba5 commit e3bb6ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/files/run/stream-stack-overflow-filter-map.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.