summaryrefslogtreecommitdiff
path: root/src/scalacheck/org
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-15 04:02:35 +0000
committerPaul Phillips <paulp@improving.org>2011-03-15 04:02:35 +0000
commit4383277103b8bc78244aff05d5116b07e70f2c2a (patch)
treecc3c66dd4dd1da779fb624478bce56bc125a6aaf /src/scalacheck/org
parente96dba0c9a2467c6cf396c70a48ef0750503c26e (diff)
downloadscala-4383277103b8bc78244aff05d5116b07e70f2c2a.tar.gz
scala-4383277103b8bc78244aff05d5116b07e70f2c2a.tar.bz2
scala-4383277103b8bc78244aff05d5116b07e70f2c2a.zip
Addresses the issues swirling around Double.Eps...
Addresses the issues swirling around Double.Epsilon and friends which were battled out in more than one venue and then aptly summarized by retronym in #3791. Thanks to Simon Ochsenreither for submitting a patch; I wasn't able to use too much of it because the source code for these types is generated, but effort is always appreciated. Closes #3791, and I'm tired and I'd hate to blow this one at this late date: review by rytz.
Diffstat (limited to 'src/scalacheck/org')
-rw-r--r--src/scalacheck/org/scalacheck/Arbitrary.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalacheck/org/scalacheck/Arbitrary.scala b/src/scalacheck/org/scalacheck/Arbitrary.scala
index 388c3dccff..14d2b9b924 100644
--- a/src/scalacheck/org/scalacheck/Arbitrary.scala
+++ b/src/scalacheck/org/scalacheck/Arbitrary.scala
@@ -98,7 +98,7 @@ object Arbitrary {
/** Arbitrary instance of Float */
implicit lazy val arbFloat: Arbitrary[Float] = Arbitrary(
Gen.chooseNum(
- Float.MinNegativeValue, Float.MaxValue
+ Float.MinValue, Float.MaxValue
// I find that including these by default is a little TOO testy.
// Float.Epsilon, Float.NaN, Float.PositiveInfinity, Float.NegativeInfinity
)
@@ -107,7 +107,7 @@ object Arbitrary {
/** Arbitrary instance of Double */
implicit lazy val arbDouble: Arbitrary[Double] = Arbitrary(
Gen.chooseNum(
- Double.MinNegativeValue / 2, Double.MaxValue / 2
+ Double.MinValue / 2, Double.MaxValue / 2
// As above. Perhaps behind some option?
// Double.Epsilon, Double.NaN, Double.PositiveInfinity, Double.NegativeInfinity
)