diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-03 06:17:23 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-03 06:17:23 +0000 |
commit | cc1f6bca81c9f524952b4b42b45d8e36d8df6387 (patch) | |
tree | 5b2912a3c222616b8e23221e2871a04a9c1aac89 /test/files/run | |
parent | 979c57cd8732a2f9c9de066d532971986bcdff7d (diff) | |
download | scala-cc1f6bca81c9f524952b4b42b45d8e36d8df6387.tar.gz scala-cc1f6bca81c9f524952b4b42b45d8e36d8df6387.tar.bz2 scala-cc1f6bca81c9f524952b4b42b45d8e36d8df6387.zip |
Parameterizes TraversableFactory.range so it ca...
Parameterizes TraversableFactory.range so it can be used with any
integral type. Closes #3542, no review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/lists-run.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/files/run/lists-run.scala b/test/files/run/lists-run.scala index 6c9b55961e..6871a96183 100644 --- a/test/files/run/lists-run.scala +++ b/test/files/run/lists-run.scala @@ -172,13 +172,7 @@ object Test3 extends TestCase("t1691") with Assert { case e: IllegalArgumentException => () case _ => throw new Error("List.range(1, 10, 0)") } - try { - List.range(1, 10, x => 4) - } catch { - case e: IllegalArgumentException => () - case _ => throw new Error("List.range(1, 10, x => 4)") - } - assertEquals(List.range(10, 0, x => x - 2), + assertEquals(List.range(10, 0, -2), List(10, 8, 6, 4, 2)) } } |