summaryrefslogtreecommitdiff
path: root/test/files/run/t4658.check
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2012-03-27 20:08:30 +0200
committerPaul Phillips <paulp@improving.org>2012-04-06 11:57:41 -0700
commite593d8b9ed6d8d98c698d0a7dc47c3341d59c357 (patch)
treefedd5df5a4592d50c46944dc12a8e3496df78c84 /test/files/run/t4658.check
parent41c0b0b7b9bd5089e35e1bf32fbcb471a9c78641 (diff)
downloadscala-e593d8b9ed6d8d98c698d0a7dc47c3341d59c357.tar.gz
scala-e593d8b9ed6d8d98c698d0a7dc47c3341d59c357.tar.bz2
scala-e593d8b9ed6d8d98c698d0a7dc47c3341d59c357.zip
Make NumericRange# O(1) instead of O(n).
It makes me a bit nervous that NumericRange[Int] will get different wrong values in overflow situations compared to Range due to the missing toLong though. It could probably need some investigation if reordering the operations can rule out wrong values, e. g. only fail when the fold also fails. Apart from that, it might make sense to just throw an exception if an overflow happens instead of silent overflow.
Diffstat (limited to 'test/files/run/t4658.check')
-rw-r--r--test/files/run/t4658.check12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/t4658.check b/test/files/run/t4658.check
index 743b0faee3..bb6405175e 100644
--- a/test/files/run/t4658.check
+++ b/test/files/run/t4658.check
@@ -19,8 +19,8 @@ Ranges:
-30
-10
IntRanges:
-Disabled #1
-Disabled #2
+-1073741824
+-1073741824
0
0
55
@@ -39,8 +39,8 @@ Disabled #2
-30
-10
LongRanges:
-Disabled #1
-Disabled #2
+2305843008139952128
+-2305843008139952128
0
0
55
@@ -59,8 +59,8 @@ Disabled #2
-30
-10
BigIntRanges:
-Disabled #1
-Disabled #2
+2305843008139952128
+-2305843008139952128
0
0
55