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

Add number range matcher #93

Open
davetc4k opened this issue Mar 4, 2022 · 0 comments
Open

Add number range matcher #93

davetc4k opened this issue Mar 4, 2022 · 0 comments

Comments

@davetc4k
Copy link

davetc4k commented Mar 4, 2022

Thank you for Pact we have adopted it at my company.

I am new to Pact so I may be wrong here as perhaps when testing for a number the matcher like(1) , number(1) or float(1.1) cover the use cases and if you want the number to be in a range you should test the response using a separate unit test (?)

Anyway, I would ask that a matcher is available for a number within a certain range e.g. [0-5].

Useful when API requests return 0 or 1 instead of false / true, or day of the week 0-5 and so on.
Thanks for your time. Please let me know how to get more involved in this project if you have time.

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