You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to implicit Choose instances for scala.math.BigDecimal and
java.math.BigDecimal we also include explicit constructor methods, since users
may wish to be explicit about the scale they want. We may want to put those
methods directly on Gen, currently the ergonomics of using this are a bit bad:
Gen.Choose.chooseBigDecimalScale(100).choose(0, 1)
The BigDecimal generation is not yet tested. That will also be added in a
follow up. This also optimizes the BigInt generator a bit and generalizes it to
java.math.BigInteger to support that as well.
Addresses typelevel#631, typelevel#637, and typelevel#664
Gen.choose[BigInt]
was added in #636 by @dmurvihill. In a comment, Erik shared some code that could improve its performance.The text was updated successfully, but these errors were encountered: