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

Request for gte and lte validators #69

Closed
lauhin opened this issue Apr 5, 2017 · 1 comment
Closed

Request for gte and lte validators #69

lauhin opened this issue Apr 5, 2017 · 1 comment

Comments

@lauhin
Copy link

lauhin commented Apr 5, 2017

Hi there,

Is it possible to add two new validators? lte and gte?
lte is the same as lt and gte as gt but the test succeeds if the value is equal too.

validator value test result
gt 11 10 true
gt 10 10 false
lt 9 10 true
lt 10 10 false

lte and gte is different from lt and gt as:

validator value test result
gte 11 10 true
gte 10 10 true
lte 9 10 true
lte 10 10 true

Thanks in advance.

Laurent

@lauhin
Copy link
Author

lauhin commented Apr 12, 2017

thx for the implementation! :D

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

2 participants