diff options
author | Paolo Giarrusso <p.giarrusso@gmail.com> | 2012-08-22 16:48:32 +0200 |
---|---|---|
committer | Paolo Giarrusso <p.giarrusso@gmail.com> | 2012-08-22 16:48:32 +0200 |
commit | 8d770a78731fa72ae227fc020195910aee34304a (patch) | |
tree | a88cd2417834d0834d5521f7c426952b8e835a39 /test/files | |
parent | ee40800f63ceaa65e6e241a093d0178e055657da (diff) | |
download | scala-8d770a78731fa72ae227fc020195910aee34304a.tar.gz scala-8d770a78731fa72ae227fc020195910aee34304a.tar.bz2 scala-8d770a78731fa72ae227fc020195910aee34304a.zip |
Also check that Stream.toSeq gives the right result.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/stream-stack-overflow-filter-map.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/run/stream-stack-overflow-filter-map.scala b/test/files/run/stream-stack-overflow-filter-map.scala index c6e8781d0a..f3a9dd49cb 100644 --- a/test/files/run/stream-stack-overflow-filter-map.scala +++ b/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) } } |