diff options
author | Martin Odersky <odersky@gmail.com> | 2007-12-19 14:27:09 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-12-19 14:27:09 +0000 |
commit | 999d30eea73cc19ff1603fc57c13d937c4fc6ce2 (patch) | |
tree | 607f83d87a09062e0d581cc5e80ac5c1829279af /test/files/run | |
parent | 422a46993cdb74ccf3650e0b171f65c6c12bdedf (diff) | |
download | scala-999d30eea73cc19ff1603fc57c13d937c4fc6ce2.tar.gz scala-999d30eea73cc19ff1603fc57c13d937c4fc6ce2.tar.bz2 scala-999d30eea73cc19ff1603fc57c13d937c4fc6ce2.zip |
fixed some tests for jvm-1.5
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/deeps.scala | 6 | ||||
-rw-r--r-- | test/files/run/streams.check | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/deeps.scala b/test/files/run/deeps.scala index af35ce6e45..e592c4ea25 100644 --- a/test/files/run/deeps.scala +++ b/test/files/run/deeps.scala @@ -46,8 +46,8 @@ object Test extends Application { println("boo:and:foo".split(':') equals "boo:and:foo".split(':')) println("boo:and:foo".split(':') deepEquals "boo:and:foo".split(':')) - val xs = new java.util.ArrayList(); xs.add("a") - val ys = new java.util.ArrayList(); ys.add("a") + val xs = new java.util.ArrayList[String](); xs.add("a") + val ys = new java.util.ArrayList[String](); ys.add("a") println(xs.toArray == ys.toArray) println(xs.toArray equals ys.toArray) println(xs.toArray deepEquals ys.toArray) @@ -98,7 +98,7 @@ object Test extends Application { def testToString3 { println("boo:and:foo".split(':').deepToString) - val xs = new java.util.ArrayList(); xs.add("a") + val xs = new java.util.ArrayList[String](); xs.add("a") println(xs.toArray.deepToString) } diff --git a/test/files/run/streams.check b/test/files/run/streams.check index 180217df4a..5346c73d12 100644 --- a/test/files/run/streams.check +++ b/test/files/run/streams.check @@ -15,5 +15,5 @@ Stream() Stream(1, 2) Stream() -9999 -8192 +999 +512 |