Skip to content

Min and max are swapped when the range is empty #50

@finkn

Description

@finkn

If a parameter is defined using expressions in such a way that the range is empty, the result is that min and max are swapped. This also interacts in surprising ways with exclusive limits. They end up extending the range rather than restricting it.

See https://github.com/finkn/InPUTspec/blob/master/main/src/net/finkn/inputspec/v050/AdvancedSingleRangeNextTest.java. Particularly limitsAreSwappedForEmptyInclusiveRange and emptyExclusiveRangeIsExtendedWhenSwapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions