diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2011-04-20 12:16:52 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2011-04-20 12:16:52 +0000 |
commit | e5ad9c55f8a7a97aa7c36a057078db2031f468e8 (patch) | |
tree | 85ec520f743d57148ca2bd9b5c777832e4281e1e /test/disabled/scalacheck | |
parent | 7c3ec209bc28f83f008bad4d126293bcbb867113 (diff) | |
download | scala-e5ad9c55f8a7a97aa7c36a057078db2031f468e8.tar.gz scala-e5ad9c55f8a7a97aa7c36a057078db2031f468e8.tar.bz2 scala-e5ad9c55f8a7a97aa7c36a057078db2031f468e8.zip |
Fixing an incomplete svnmerge; first, revert to...
Fixing an incomplete svnmerge; first, revert to r24726.
Diffstat (limited to 'test/disabled/scalacheck')
-rw-r--r-- | test/disabled/scalacheck/HashTrieSplit.scala | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/disabled/scalacheck/HashTrieSplit.scala b/test/disabled/scalacheck/HashTrieSplit.scala deleted file mode 100644 index 6b20efe12b..0000000000 --- a/test/disabled/scalacheck/HashTrieSplit.scala +++ /dev/null @@ -1,47 +0,0 @@ - - - - - -import collection._ - - - - -// checks whether hash tries split their iterators correctly -// even after some elements have been traversed -object Test { - def main(args: Array[String]) { - doesSplitOk - } - - def doesSplitOk = { - val sz = 2000 - var ht = new parallel.immutable.ParHashMap[Int, Int] - // println("creating trie") - for (i <- 0 until sz) ht += ((i + sz, i)) - // println("created trie") - for (n <- 0 until (sz - 1)) { - // println("---------> n = " + n) - val pit = ht.parallelIterator - val pit2 = ht.parallelIterator - var i = 0 - while (i < n) { - pit.next - pit2.next - i += 1 - } - // println("splitting") - val pits = pit.split - val fst = pits(0).toSet - val snd = pits(1).toSet - val orig = pit2.toSet - if (orig.size != (fst.size + snd.size) || orig != (fst ++ snd)) { - println("Original: " + orig) - println("First: " + fst) - println("Second: " + snd) - assert(false) - } - } - } -} |