-
-
Couldn't load subscription status.
- Fork 608
Can Chain assertions #493
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
Can Chain assertions #493
Conversation
| ("testToNotNegativeMatches", testToNotNegativeMatches), | ||
| ("testNotToMatchesLikeToNot", testNotToMatchesLikeToNot), | ||
| ("testChainExpectation", testChainExpectation), | ||
| ("testChainFailOnFirstError", testChainFailOnFirstError) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Comma Violation: Multi-line collection literals should have trailing commas. (trailing_comma)
| func testNotToMatchesLikeToNot() { | ||
| expect(1).notTo(MatcherFunc { _, _ in false }) | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| expect { throw NimbleError.laugh }.to(throwError(NimbleError.laugh, closure: closure)) | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| expect { () -> Void in fatalError() }.toNot(throwAssertion()) | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
|
thank you for getting it done ! |
related to #369
The goal is to be able to chain assertions, for example: