From d19685e7a52bd421934cfe389886f1a1cc938df1 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 27 Aug 2009 20:07:02 +0000 Subject: Test case for #2250, which Martin fixed in r18589. --- test/files/run/bug2250.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/run/bug2250.scala (limited to 'test/files') 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 -- cgit v1.2.3