summaryrefslogtreecommitdiff
path: root/test/files/run/t9219.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-9219 Stream toString returns unexpected resultSzabolcs Berecz2015-03-141-0/+11
- Cursor was not advanced before appending the second element when only the first two elements of the stream were known. - When there is no cycle in the stream, the "scout" (and "cursor") ends up pointing to a stream where tailDefined is false. This means that cursor is either empty, or cursor.tail is not yet evaluated. The former case is handled properly, but in the latter case, one more element (cursor.head) needs to be appended.