We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddec639 commit 3aa9442Copy full SHA for 3aa9442
src/main/scala/org/scalacheck/Gen.scala
@@ -411,10 +411,10 @@ object Gen extends GenArities{
411
def choose(low: Double, high: Double) =
412
if (low > high) throw new IllegalBoundsError(low, high)
413
else if (low == Double.NegativeInfinity)
414
- frequency(1 -> Double.NegativeInfinity,
+ frequency(1 -> const(Double.NegativeInfinity),
415
9 -> choose(Double.MinValue, high))
416
else if (high == Double.PositiveInfinity)
417
- frequency(1 -> Double.PositiveInfinity,
+ frequency(1 -> const(Double.PositiveInfinity),
418
9 -> choose(low, Double.MaxValue))
419
else gen(chDbl(low,high))
420
}
0 commit comments