diff options
author | michelou <michelou@epfl.ch> | 2007-10-19 11:06:30 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-10-19 11:06:30 +0000 |
commit | 15ffd68390ffe8de7a3cab84a5573191dee1d4f2 (patch) | |
tree | 4981244b0a829b654b131a1e793c54aa97cdf023 /test/pending/run/arrays-2.scala | |
parent | 476606f848423a842b7346bb93ab6e009b2c37b3 (diff) | |
download | scala-15ffd68390ffe8de7a3cab84a5573191dee1d4f2.tar.gz scala-15ffd68390ffe8de7a3cab84a5573191dee1d4f2.tar.bz2 scala-15ffd68390ffe8de7a3cab84a5573191dee1d4f2.zip |
moved run/arrays-2.* to pending
Diffstat (limited to 'test/pending/run/arrays-2.scala')
-rw-r--r-- | test/pending/run/arrays-2.scala | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/pending/run/arrays-2.scala b/test/pending/run/arrays-2.scala new file mode 100644 index 0000000000..055616d98c --- /dev/null +++ b/test/pending/run/arrays-2.scala @@ -0,0 +1,26 @@ +//############################################################################ +// Arrays 2 +//############################################################################ +// $Id: $ + +//############################################################################ + +object Test extends Application { + val a1 = Array(1, 2, 3) + val a2 = Array(0, 7, 4, 2, 1, 3, 6, 5) + val a3 = new Array(1, 2, 3) // ticket #193 (VerifyError) + + def _toString[A](a: Array[A]) = a.mkString("[", ",", "]") + + // slice: see file slices.scala + println("a1=" + a1.reverse) + println("a1=" + _toString(a1.reverse)) + println("a2=" + a2.filter(_ % 2 == 0)) + println("a2=" + _toString(a2.filter(_ % 2 == 0))) + + println("a2=" + _toString(a2)) + util.Sorting.stableSort(a2) + println("a2=" + _toString(a2)) + + println(a1 deepEquals a3) +} |