summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/nan-ordering.scala
Commit message (Collapse)AuthorAgeFilesLines
* fixes #5104 and related NaN ordering inconsistenciesSzabolcs Berecz2011-12-251-0/+130
The bug was caused by the inconsistency between j.l.Math.min() and j.l.Double.compareTo() wrt NaN (j.l.Math.min() considers NaN to be less than any other value while j.l.Double.compareTo() says it's greater...) The fix changes Ordering.{FloatOrdering,DoubleOrdering) to base it's results on primitive comparisons and math.{min,max} instead of j.l.{Float,Double}.compareTo()