summaryrefslogtreecommitdiff
path: root/test/files/run/stream-stack-overflow-filter-map.scala
Commit message (Collapse)AuthorAgeFilesLines
* Also check that Stream.toSeq gives the right result.Paolo Giarrusso2012-08-221-1/+3
|
* Improve test for Stream.withFilter.{map,flatMap}Paolo Giarrusso2012-08-221-10/+40
| | | | Test a wider range of functionality.
* Cleanup testcasePaolo Giarrusso2012-08-201-4/+2
| | | | | No need to check the output - checking programmatically that the produced streams are empty is enough.
* Make Stream.withFilter.{map,flatMap} run in constant stack spacePaolo Giarrusso2012-08-201-0/+14
The included test currently fails because `map` and `flatMap` do not run in constant stack space on a stream returned by `Stream.withFilter`, as I reported here: https://groups.google.com/d/msg/scala-language/WqJR38REXnk/saaSiDdmyqoJ Fix the problem and add a simple testcase. Note that the stack space consumed when producing an element of this stream is proportional to the number of elements failing the test before the next success. The stack space consumed to produce the stream itself is the space needed to produce the first element, that is, is proportional to the number of failures before the first success.