summaryrefslogblamecommitdiff
path: root/test/files/run/bug2250.scala
blob: 72079a1edc076f87283fb123d06157fb792b8c29 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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)
  }
}