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 request: Allow overlapping matchers #42

Open
abel-matsec opened this issue Dec 13, 2023 · 1 comment
Open

Feature request: Allow overlapping matchers #42

abel-matsec opened this issue Dec 13, 2023 · 1 comment

Comments

@abel-matsec
Copy link

abel-matsec commented Dec 13, 2023

It seems like overlapping matchers end up raising an error. It would be helpful if matchers could simply take precedence over each other, e.g. according to the order in which they are specified.

This could allow specifying default (non-null) behavior for a function as well as a different result for specific inputs.

This would make it easy to effectively implement #41 on my own.

@roypeled
Copy link
Collaborator

Can you provide a code sample of what you expect and what is not working as expected?

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