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 4559da1 commit 1a790eaCopy full SHA for 1a790ea
jvm/src/test/scala/org/scalacheck/GenSpecification.scala
@@ -118,7 +118,7 @@ object GenSpecification extends Properties("Gen") {
118
119
import Double.{MinValue, MaxValue}
120
property("choose-large-double") = forAll(choose(MinValue, MaxValue)) { x =>
121
- MinValue <= x && x <= MaxValue
+ MinValue <= x && x <= MaxValue && !x.isNaN
122
}
123
124
import Double.{NegativeInfinity, PositiveInfinity}
0 commit comments