summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-09-26 06:46:56 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-09-26 06:46:56 -0700
commit01b68268a94e247696f2993363427f87d5143140 (patch)
tree41c674d1a485c355a322339b2a465cba320a50fb /test
parent512b437f17627d84e98d48658529109dc109650f (diff)
parent188d69631573ee0f718fce47689e29f16a46ea08 (diff)
downloadscala-01b68268a94e247696f2993363427f87d5143140.tar.gz
scala-01b68268a94e247696f2993363427f87d5143140.tar.bz2
scala-01b68268a94e247696f2993363427f87d5143140.zip
Merge pull request #1396 from axel22/issue/6410
SI-6410 add test cases.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t6410.check2
-rw-r--r--test/files/run/t6410.scala9
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t6410.check b/test/files/run/t6410.check
new file mode 100644
index 0000000000..051fe4995a
--- /dev/null
+++ b/test/files/run/t6410.check
@@ -0,0 +1,2 @@
+ParMap(0 -> 4, 1 -> 5)
+ParMap(0 -> 4, 1 -> 5) \ No newline at end of file
diff --git a/test/files/run/t6410.scala b/test/files/run/t6410.scala
new file mode 100644
index 0000000000..2a001b47ab
--- /dev/null
+++ b/test/files/run/t6410.scala
@@ -0,0 +1,9 @@
+
+
+
+object Test extends App {
+ val x = collection.parallel.mutable.ParArray.range(1,10) groupBy { _ % 2 } mapValues { _.size }
+ println(x)
+ val y = collection.parallel.immutable.ParVector.range(1,10) groupBy { _ % 2 } mapValues { _.size }
+ println(y)
+} \ No newline at end of file