diff options
author | Steve Robinson <steve.robinson290391@gmail.com> | 2016-02-27 09:13:45 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-05-19 10:54:33 -0700 |
commit | 214ea82573624bffb4d0f16f3e5c49f9370ba7a7 (patch) | |
tree | 906b6e646bceab8f43ab4812bcee48181149b3e3 /test/files/jvm | |
parent | 4a7f82c9047d04d79aa0fe4c0f8dc249ba221f76 (diff) | |
download | scala-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/jvm')
-rw-r--r-- | test/files/jvm/serialization-new.check | 8 | ||||
-rw-r--r-- | test/files/jvm/serialization.check | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/files/jvm/serialization-new.check b/test/files/jvm/serialization-new.check index 1c5dd4828b..ca91ec1073 100644 --- a/test/files/jvm/serialization-new.check +++ b/test/files/jvm/serialization-new.check @@ -97,12 +97,12 @@ x = Queue(a, b, c) y = Queue(a, b, c) x equals y: true, y equals x: true -x = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) -y = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) +x = Range 0 until 10 +y = Range 0 until 10 x equals y: true, y equals x: true -x = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) -y = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) +x = NumericRange 0 until 10 +y = NumericRange 0 until 10 x equals y: true, y equals x: true x = Map(1 -> A, 2 -> B, 3 -> C) diff --git a/test/files/jvm/serialization.check b/test/files/jvm/serialization.check index 1c5dd4828b..ca91ec1073 100644 --- a/test/files/jvm/serialization.check +++ b/test/files/jvm/serialization.check @@ -97,12 +97,12 @@ x = Queue(a, b, c) y = Queue(a, b, c) x equals y: true, y equals x: true -x = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) -y = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) +x = Range 0 until 10 +y = Range 0 until 10 x equals y: true, y equals x: true -x = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) -y = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) +x = NumericRange 0 until 10 +y = NumericRange 0 until 10 x equals y: true, y equals x: true x = Map(1 -> A, 2 -> B, 3 -> C) |