https://kotlinlang.org logo
#kotest
Title
# kotest
s

Srki Rakic

07/18/2021, 1:14 AM
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. I wonder if this intentional, or a bug?
s

sam

07/18/2021, 1:22 AM
That seems a bug. The edge case should only be included if the min is < 28th feb
s

Srki Rakic

07/18/2021, 1:23 AM
Kk. Thanks. I can take a crack at this. Do I need to open an issue first, or I can just cut a PR?
s

sam

07/18/2021, 1:31 AM
you can make a one line issue just so we have something to track
s

Srki Rakic

07/18/2021, 1:49 AM
👌
2 Views