summaryrefslogtreecommitdiff
path: root/test/files/run/bug2250.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-27 20:07:02 +0000
committerPaul Phillips <paulp@improving.org>2009-08-27 20:07:02 +0000
commitd19685e7a52bd421934cfe389886f1a1cc938df1 (patch)
tree73d79db9e3110afc8bef8892ea72b621633a9188 /test/files/run/bug2250.scala
parentd0a82fb9dbb5206996e8f08159cd522a5bfcca04 (diff)
downloadscala-d19685e7a52bd421934cfe389886f1a1cc938df1.tar.gz
scala-d19685e7a52bd421934cfe389886f1a1cc938df1.tar.bz2
scala-d19685e7a52bd421934cfe389886f1a1cc938df1.zip
Test case for #2250, which Martin fixed in r18589.
Diffstat (limited to 'test/files/run/bug2250.scala')
-rw-r--r--test/files/run/bug2250.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/bug2250.scala b/test/files/run/bug2250.scala
new file mode 100644
index 0000000000..72079a1edc
--- /dev/null
+++ b/test/files/run/bug2250.scala
@@ -0,0 +1,12 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val a: Array[String] = "goobledy bing, goobledy bling, wikka wokka wup.".split("")
+ val b = java.util.Arrays.asList(a: _*)
+ java.util.Collections.shuffle(b)
+
+ // we'll say rather unlikely a.sameElements(b) unless
+ // they are pointing to the same array
+ import scala.collection.JavaConversions._
+ assert(a sameElements b)
+ }
+} \ No newline at end of file