Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failing YearMonth bounded generator #8452

@loathwine

Description

@loathwine

The bounded yearMonth generator can fail when the lower bound has a month that has a higher index than the upper bound month.

final def yearMonth(min: YearMonth, max: YearMonth)(implicit trace: Trace): Gen[Any, YearMonth]

// Can fail in Gen.int(min, max) with IllegalArgumentException("invalid bounds")
yearMonth(YearMonth.of(2022, 12), YearMonth.of(2023, 1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions