Skip to content

Conversation

@ikesyo
Copy link
Member

@ikesyo ikesyo commented May 6, 2020

Closes #369. Supersedes #493. Thanks to the original work of @mockersf 👏

Co-authored-by: mockersf <mockersf@gmail.com>
This was referenced May 6, 2020
@ikesyo ikesyo merged commit 4fce288 into master May 7, 2020
@ikesyo ikesyo deleted the assertion-chaining branch May 7, 2020 11:54
@ikesyo ikesyo added this to the v9.0.0 milestone May 7, 2020
Comment on lines +149 to +153
func testChainFailOnFirstError() {
failsWithErrorMessage("expected to not equal <2>, got <2>") {
expect(2).toNot(equal(1)).toNot(equal(2)).to(equal(3))
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the chain does not stop on first error; all chained assertions are executed. The behavior itself should be okay but the test should be tweaked a bit.

@ikesyo
Copy link
Member Author

ikesyo commented May 8, 2020

This could/should be implemented for Objective-C API as well.

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

Successfully merging this pull request may close these issues.

Combining assertions

1 participant