Skip to content
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

minDate not respected in Arb.localDate #2369

Closed
unaryops opened this issue Jul 18, 2021 · 0 comments
Closed

minDate not respected in Arb.localDate #2369

unaryops opened this issue Jul 18, 2021 · 0 comments
Labels
bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework.
Milestone

Comments

@unaryops
Copy link
Contributor

unaryops commented Jul 18, 2021

Which version of Kotest are you using
Version 4.6

This code doesn’t take into account the date/month portion of the specified minDate . So when you specify minDate that is after the default edge case date, it will (intermittently) fail. Here’s an example Arb.localDate(minDate = LocalDate.now().plusDays(10)) will generate a 2021-02-28 date

unaryops added a commit to unaryops/kotest that referenced this issue Jul 19, 2021
Arb.localDate doesn’t take into account the date/month portion of the
specified minDatex. So when you specify minDate that is after the
default edge case date, it will (intermittently) fail. Here’s an example
Arb.localDate(minDate = LocalDate.now().plusDays(10)) will generate a
2021-02-28 date.
sksamuel pushed a commit that referenced this issue Jul 19, 2021
Arb.localDate doesn’t take into account the date/month portion of the
specified minDatex. So when you specify minDate that is after the
default edge case date, it will (intermittently) fail. Here’s an example
Arb.localDate(minDate = LocalDate.now().plusDays(10)) will generate a
2021-02-28 date.
@sksamuel sksamuel modified the milestones: 4.6.1, 4.6.2 Jul 19, 2021
@sksamuel sksamuel added bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework. labels Jul 19, 2021
sksamuel pushed a commit that referenced this issue Aug 24, 2021
Arb.localDate doesn’t take into account the date/month portion of the
specified minDatex. So when you specify minDate that is after the
default edge case date, it will (intermittently) fail. Here’s an example
Arb.localDate(minDate = LocalDate.now().plusDays(10)) will generate a
2021-02-28 date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework.
Projects
None yet
Development

No branches or pull requests

2 participants