Skip to content

Add number range matcher #93

@davetc4k

Description

@davetc4k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions