diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-04 12:26:42 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-04 12:26:42 +0000 |
commit | 9ee1f2f3b8ed91897bb298592f8a600ff5e4622d (patch) | |
tree | a2959e3eeaecb558d13a279404d35fb174df7ee7 /test/files/run/hashCodeDistribution.scala | |
parent | 93277ea0201f139e829cfd7248142a0c5898d9ce (diff) | |
download | scala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.tar.gz scala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.tar.bz2 scala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.zip |
Unique's seeming victory is overruled by commit...
Unique's seeming victory is overruled by committee. It is "distinct",
not "unique", wherein lies the nub. No review.
Diffstat (limited to 'test/files/run/hashCodeDistribution.scala')
-rw-r--r-- | test/files/run/hashCodeDistribution.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/hashCodeDistribution.scala b/test/files/run/hashCodeDistribution.scala index 64cae398f1..5be9d1db6d 100644 --- a/test/files/run/hashCodeDistribution.scala +++ b/test/files/run/hashCodeDistribution.scala @@ -8,7 +8,7 @@ object Test { val hashCodes = for (x <- 0 until COUNT; y <- 0 until COUNT) yield C(x,y).hashCode - val uniques = hashCodes.unique + val uniques = hashCodes.distinct val collisionRate = (totalCodes - uniques.size) * 1000 / totalCodes assert(collisionRate < 5, "Collision rate too high: %d / 1000".format(collisionRate)) |