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

Improve Code Argument Matcher #908

Open
leonard84 opened this Issue Sep 13, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@leonard84
Member

leonard84 commented Sep 13, 2018

Currently code arguments only work as a predicate, i.e. they have to return true/false.
The problem with this arises when the boolean expression gets complext, e.g. when validating a complex object.

This can be improved by catching AssertionError for the matcher and treating it as a simple non match instead of breaking the test altogether. In conjunction with #901 we can render the error message as the code result.

Furthermore, we might want to treat the code argument closures as having implicit assertions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment