Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] _range: check that a value is within the given bounds #2

Open
mathieucaroff opened this issue Jul 9, 2020 · 0 comments
Open

Comments

@mathieucaroff
Copy link
Contributor

mathieucaroff commented Jul 9, 2020

I proposal to add _range, a Lidy checker to check that a number is within the given bounds.

Syntax (lidy): _range: (min <= int/float <= max)

Example:

intExample:
  _range: (0 <= int < 100)

floatExample:
  _range: (0 <= float < 1)

positiveIntExample:
  _range: (0 <= int)

negativeIntExample:
  _range: (float <= 0)
@mathieucaroff mathieucaroff changed the title [feature] _range, a checker to check a value is within the given bounds [feature] _range: check that a value is within the given bounds Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant