diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-03 17:34:31 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-03 17:34:31 +0000 |
commit | 96a42a2eda85489bb7dba25d9e8597bd35d7bcbd (patch) | |
tree | 51e3848b5d994cdaee75c9faefead41bc9e729d0 /test/files/run/hashCodeDistribution.scala | |
parent | a6eecfb04532c83a715d520e885250e8de808f9e (diff) | |
download | scala-96a42a2eda85489bb7dba25d9e8597bd35d7bcbd.tar.gz scala-96a42a2eda85489bb7dba25d9e8597bd35d7bcbd.tar.bz2 scala-96a42a2eda85489bb7dba25d9e8597bd35d7bcbd.zip |
Striking while the iron is hot, renamed removeD...
Striking while the iron is hot, renamed removeDuplicates to unique and
deprecated removeDuplicates. The debate between distinct and unique was
vigorous but unique won by a freckle. (Dark horse 'nub' was disqualified
for taking performance enhancers.) The only thing which might need
review is the choice of name, but review by odersky.
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 dbb6e833bd..64cae398f1 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.removeDuplicates + val uniques = hashCodes.unique val collisionRate = (totalCodes - uniques.size) * 1000 / totalCodes assert(collisionRate < 5, "Collision rate too high: %d / 1000".format(collisionRate)) |