LocalDateTime arb should accept localdatetimes as min and max #2704
Labels
enhancement ✨
Suggestions for adding new features or improving existing ones.
good-first-issue 👶
Suitable for newcomers looking to contribute to the project.
property-testing 📏
Related to the property testing mechanisms within the testing framework.
Milestone
kotest/kotest-property/src/jvmMain/kotlin/io/kotest/property/arbitrary/dates.kt
Line 87 in a139907
The arbs for both
localDate
andlocalTime
have an equal type as parameter. LocalDateTime doesn't. As a LocalDateTime is a LocalDate + LocalTime, this should not be an issue.To fix this:
Arb.localDateTime(minYear: Int, maxYear: Int)
Arb.localDateTime(minLocalDateTime: LocalDateTime, maxLocalDateTime: LocalDateTime)
The text was updated successfully, but these errors were encountered: