Skip to content

Commit e3bb6ba

Browse files
committed
Also check that Stream.toSeq gives the right result.
1 parent 33cdba5 commit e3bb6ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/files/run/stream-stack-overflow-filter-map.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ object Test extends App {
3737

3838
//Complete test case for withFilter + map/flatMap, as requested by @axel22.
3939
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)
4143
}
4244
}

0 commit comments

Comments
 (0)