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

Combining assertions #369

Closed
jeffh opened this issue Nov 15, 2016 · 2 comments · Fixed by #742
Closed

Combining assertions #369

jeffh opened this issue Nov 15, 2016 · 2 comments · Fixed by #742

Comments

@jeffh
Copy link
Member

jeffh commented Nov 15, 2016

From: Quick/Quick#432

It would seem to be useful to be able to generate two tests by eg:

expect { try someFunc() }.toNot(throwError()).to(equal(5))

This form doesn't work, I don't see any docs about how to achieve the same thing, or is there some reason that eludes me that this isn't a good idea?

@sigito
Copy link
Contributor

sigito commented Dec 22, 2016

Since the Expectation is an immutable structure, is there any reason why we cannot just extend its methods with an additional result returning self?

@jeffh
Copy link
Member Author

jeffh commented Jan 7, 2017 via email

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

Successfully merging a pull request may close this issue.

3 participants