From 4383277103b8bc78244aff05d5116b07e70f2c2a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 15 Mar 2011 04:02:35 +0000 Subject: 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. --- src/scalacheck/org/scalacheck/Arbitrary.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scalacheck/org') 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 ) -- cgit v1.2.3