summaryrefslogtreecommitdiff
path: root/test/files/run/t9656.check
diff options
context:
space:
mode:
authorSteve Robinson <steve.robinson290391@gmail.com>2016-02-27 09:13:45 -0800
committerSom Snytt <som.snytt@gmail.com>2016-05-19 10:54:33 -0700
commit214ea82573624bffb4d0f16f3e5c49f9370ba7a7 (patch)
tree906b6e646bceab8f43ab4812bcee48181149b3e3 /test/files/run/t9656.check
parent4a7f82c9047d04d79aa0fe4c0f8dc249ba221f76 (diff)
downloadscala-214ea82573624bffb4d0f16f3e5c49f9370ba7a7.tar.gz
scala-214ea82573624bffb4d0f16f3e5c49f9370ba7a7.tar.bz2
scala-214ea82573624bffb4d0f16f3e5c49f9370ba7a7.zip
SI-9656 Range.toString distinguishes Numeric step
For Range and NumericRange, toString will indicate the step if it is not 1. Additionally, indicate empty ranges and ranges which are not "exact". For a "mapped" range, used by `Range.Double`, toString includes the underlying range and the simple type of the step (to distinguish Double from BigDecimal).
Diffstat (limited to 'test/files/run/t9656.check')
-rw-r--r--test/files/run/t9656.check14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t9656.check b/test/files/run/t9656.check
new file mode 100644
index 0000000000..03e3ff3b5f
--- /dev/null
+++ b/test/files/run/t9656.check
@@ -0,0 +1,14 @@
+Range 1 to 10
+Range 1 to 10
+inexact Range 1 to 10 by 2
+Range 1 to 10 by 3
+inexact Range 1 until 10 by 2
+Range 100 to 100
+empty Range 100 until 100
+NumericRange 1 to 10
+NumericRange 1 to 10 by 2
+NumericRange 0.1 until 1.0 by 0.1
+NumericRange 0.1 until 1.0 by 0.1
+NumericRange 0.1 until 1.0 by 0.1 (using NumericRange 0.1 until 1.0 by 0.1 of BigDecimal)
+NumericRange 0 days until 10 seconds by 1 second
+empty NumericRange 0 days until 0 days by 1 second