-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigDecimal arb can return edgecases outside min max limits #2834
Milestone
Comments
ciffer
changed the title
Bigdecimal arb can return edgecases outside min max limits
BigDecimal arb can return edgecases outside min max limits
Feb 17, 2022
Pr always most welcome!
…On Thu, 17 Feb 2022, 07:44 Kacper Lamparski, ***@***.***> wrote:
*Which version of Kotest are you using*
5.0.3
Arb.bigDecimal(min = .., max = ..) returns an Arbitrary that has
edgecases outside of range min..max.
*Reproduction*:
val edgecases = Arb.bigDecimal(min = BigDecimal.ONE, max = BigDecimal.TEN)
.edgecases()
println(edgecases)
*Current output*:
[1, 1E-300, -1E-300, -1, 0, 0.00]
*Expected output*:
[1]
I can provide a pull request later today if the report is accepted.
Cheers and keep up the great work!
—
Reply to this email directly, view it on GitHub
<#2834>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGUL7TMM6YZULETBSVDU3T3T7ANCNFSM5OUXHHEA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
ciffer
pushed a commit
to ciffer/kotest
that referenced
this issue
Feb 18, 2022
Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min and max are now added as edgecases for Arb.bigDecimal(min, max)
Created PR #2835 |
I wasn't sure what branch should I target as it isn't a fix for any specific version. Let me know if I need to change it to |
ciffer
pushed a commit
to ciffer/kotest
that referenced
this issue
Feb 18, 2022
Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min is now added as edgecase for Arb.bigDecimal(min, max)
ciffer
pushed a commit
to ciffer/kotest
that referenced
this issue
Feb 18, 2022
Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min is now added as edgecase for Arb.bigDecimal(min, max)
ciffer
added a commit
to ciffer/kotest
that referenced
this issue
Feb 21, 2022
Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min is now added as edgecase for Arb.bigDecimal(min, max)
sksamuel
pushed a commit
that referenced
this issue
Feb 21, 2022
* BigDecimal arb can return edgecases outside min max limits #2834 Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min is now added as edgecase for Arb.bigDecimal(min, max) * BigDecimal arb can return edgecases outside min max limits #2834 Edgecases for Arb.bigDecimal(min, max) are now always contrained to be in range [min, max) Min is now added as edgecase for Arb.bigDecimal(min, max) Co-authored-by: kacper.lamparski <klampars@unitygroup.com>
This was fixed in #2835 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version of Kotest are you using
5.0.3
Arb.bigDecimal(min = .., max = ..)
returns an Arbitrary that has edgecases outside of range min..max.Reproduction:
Current output:
Expected output:
I can provide a pull request later today if the report is accepted.
Cheers and keep up the great work!
The text was updated successfully, but these errors were encountered: