Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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