From 8d770a78731fa72ae227fc020195910aee34304a Mon Sep 17 00:00:00 2001
From: Paolo Giarrusso
Date: Wed, 22 Aug 2012 16:48:32 +0200
Subject: Also check that Stream.toSeq gives the right result.
---
test/files/run/stream-stack-overflow-filter-map.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
}
}
--
cgit v1.2.3