Skip to content

between doesn't work with the number 0 #298

Description

@scotttyso
>>> import validators
>>> validators.between(0, min_val=0, max_val=5)
ValidationError(func=between, args={'value': 0, 'min_val': 0, 'max_val': 5})
>>> validators.between(1, min_val=0, max_val=5)
True
>>> validators.between(0, min_val=-1, max_val=5)
ValidationError(func=between, args={'value': 0, 'min_val': -1, 'max_val': 5})
>>> validators.between(-1, min_val=-1, max_val=5)
True
>>> 

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

    bugIssue: Works not as designed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions