-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to know which Matcher was used when using Matchers.anyOf. #38
Comments
Now I use:
Is it correct way? |
Sorry for delay. Somehow I missed this github notification among the others. Note that MultiResult implements Result and delegates their methods to the matched result. So the MultiResult instance will contain the matching information either of contains("reconfigure") or regexp("# $"). You can also consider using interact feature. For example:
|
Don't worry! The I know that MultiResult implements Result, but I do not understand how it can help me to recognize which matcher is matched from passed to About By method
But now I'm not sure if this method is really necessary... It will only return correct result for |
For example I want to do:
How could I know the index of used matcher?
The text was updated successfully, but these errors were encountered: