diff options
author | Paul Phillips <paulp@improving.org> | 2009-11-06 19:25:10 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-11-06 19:25:10 +0000 |
commit | f540f0350315c2af8779286f85084405cdbf0d76 (patch) | |
tree | 3b778ca201f97c6c105205fcf01dceb9429793f8 /test | |
parent | 5d25e9334d6dfd492cb5312a43b3d3f36042401a (diff) | |
download | scala-f540f0350315c2af8779286f85084405cdbf0d76.tar.gz scala-f540f0350315c2af8779286f85084405cdbf0d76.tar.bz2 scala-f540f0350315c2af8779286f85084405cdbf0d76.zip |
- Renames filterMap to partialMap
- Renames GenericRange to NumericRange
- Removes most @experimental annotations
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/range.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/files/run/range.scala b/test/files/run/range.scala index 97d7a84acc..65d33a6134 100644 --- a/test/files/run/range.scala +++ b/test/files/run/range.scala @@ -1,4 +1,4 @@ -import scala.collection.immutable.{ Range, GenericRange } +import scala.collection.immutable.{ Range, NumericRange } object Test { def rangeForeach(range : Range) = { @@ -12,10 +12,10 @@ object Test { def negated = GR[T](-x) - def gr1 = GenericRange(x, x, x) - def gr2 = GenericRange.inclusive(x, x, x) - def gr3 = GenericRange(x, x * fromInt(10), x) - def gr4 = GenericRange.inclusive(x, x * fromInt(10), x) + def gr1 = NumericRange(x, x, x) + def gr2 = NumericRange.inclusive(x, x, x) + def gr3 = NumericRange(x, x * fromInt(10), x) + def gr4 = NumericRange.inclusive(x, x * fromInt(10), x) def check = assert( gr1.isEmpty && !gr2.isEmpty && @@ -40,9 +40,9 @@ object Test { val grs = _grs ::: (_grs map (_.negated)) grs foreach (_.check) - assert(GenericRange(1, 10, 1) sameElements (1 until 10)) - assert(GenericRange.inclusive(1, 10, 1) sameElements (1 to 10)) - assert(GenericRange.inclusive(1, 100, 3) sameElements (1 to 100 by 3)) + assert(NumericRange(1, 10, 1) sameElements (1 until 10)) + assert(NumericRange.inclusive(1, 10, 1) sameElements (1 to 10)) + assert(NumericRange.inclusive(1, 100, 3) sameElements (1 to 100 by 3)) rangeForeach(1 to 10); rangeForeach(1 until 10); |