summaryrefslogtreecommitdiff
path: root/test/files/run/streams.check
diff options
context:
space:
mode:
authorJean-Remi Desjardins <jeanremi.desjardins@gmail.com>2012-11-22 00:59:43 -0500
committerPaul Phillips <paulp@improving.org>2012-12-28 16:56:06 -0800
commit24a033b2aa4174fe8e9c3c02372b6508ef404601 (patch)
tree11576d7d56057ad565af82a0896fb4a41d4d3e36 /test/files/run/streams.check
parent1284c3c6f38cc419a0a39fd68b3d5cf81b36b1a5 (diff)
downloadscala-24a033b2aa4174fe8e9c3c02372b6508ef404601.tar.gz
scala-24a033b2aa4174fe8e9c3c02372b6508ef404601.tar.bz2
scala-24a033b2aa4174fe8e9c3c02372b6508ef404601.zip
SI-6415, overly eager evaluation in Stream.
The lengthCompare method in LinearSeqOptimized was looking one step further than it needed to in order to give the correct result, which was creating some unwanted side effects related to Streams.
Diffstat (limited to 'test/files/run/streams.check')
-rw-r--r--test/files/run/streams.check14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/streams.check b/test/files/run/streams.check
index 7f894052d9..db6d2eebab 100644
--- a/test/files/run/streams.check
+++ b/test/files/run/streams.check
@@ -1,5 +1,8 @@
Stream()
Stream()
+true
+true
+true
Array(1)
Stream(1, ?)
@@ -8,12 +11,21 @@ Stream()
Stream()
Stream(1)
Stream()
+true
+true
+true
+true
Array(1, 2)
Stream(2)
Stream()
Stream(1, 2)
Stream()
+true
+true
+true
+true
+true
999
512
@@ -23,3 +35,5 @@ Stream(100001, ?)
true
true
705082704
+
+true