summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-06-28 15:21:47 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-06-28 15:21:47 +0000
commit44ca9e1e608e07042b9536dcfd986f2a6a128482 (patch)
treee44714f55442b7343f9a604f23bb9045d92234d0 /test/files
parent6c7d1d8902c0fe4b425dc1a789d366dad7dad251 (diff)
downloadscala-44ca9e1e608e07042b9536dcfd986f2a6a128482.tar.gz
scala-44ca9e1e608e07042b9536dcfd986f2a6a128482.tar.bz2
scala-44ca9e1e608e07042b9536dcfd986f2a6a128482.zip
Merged revisions 22399-22400 via svnmerge from
https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r22399 | extempore | 2010-06-27 03:34:40 +0200 (Sun, 27 Jun 2010) | 2 lines Disposed of a gordian knot by transforming stringbuilder into a straight wrapper of java's. No review. ........ r22400 | extempore | 2010-06-27 03:35:11 +0200 (Sun, 27 Jun 2010) | 1 line Removed unfinished Jenkins hashcode for final. No review. ........
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/hashCodeDistribution.flags1
-rw-r--r--test/files/run/hashCodeDistribution.scala17
2 files changed, 0 insertions, 18 deletions
diff --git a/test/files/run/hashCodeDistribution.flags b/test/files/run/hashCodeDistribution.flags
deleted file mode 100644
index 7806652d4d..0000000000
--- a/test/files/run/hashCodeDistribution.flags
+++ /dev/null
@@ -1 +0,0 @@
--Yjenkins-hashCodes \ No newline at end of file
diff --git a/test/files/run/hashCodeDistribution.scala b/test/files/run/hashCodeDistribution.scala
deleted file mode 100644
index 5be9d1db6d..0000000000
--- a/test/files/run/hashCodeDistribution.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-// See ticket #2537.
-object Test {
- case class C(x: Int, y: Int) { }
- val COUNT = 300
- val totalCodes = COUNT * COUNT
-
- def main (args: Array[String]) = {
- val hashCodes =
- for (x <- 0 until COUNT; y <- 0 until COUNT) yield C(x,y).hashCode
-
- val uniques = hashCodes.distinct
- val collisionRate = (totalCodes - uniques.size) * 1000 / totalCodes
-
- assert(collisionRate < 5, "Collision rate too high: %d / 1000".format(collisionRate))
- // println("collisionRate = %d / 1000".format(collisionRate))
- }
-} \ No newline at end of file