Skip to content

[XCTestCase] Don't check equality with boolean #16

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

Merged
merged 1 commit into from
Dec 16, 2015

Conversation

modocache
Copy link
Contributor

Rather than checking equality with false, this condition could be expressed more succinctly with if !failure.expected.

Rather than checking equality with false, this condition could be expressed more succinctly with if `!failure.expected`.
modocache referenced this pull request Dec 16, 2015
An “unexpected failure” is a failure that wasn’t accounted for by an assertion.
mike-ferris pushed a commit that referenced this pull request Dec 16, 2015
[XCTestCase] Don't check equality with boolean
@mike-ferris mike-ferris merged commit 84da524 into swiftlang:master Dec 16, 2015
@modocache modocache deleted the patch-2 branch December 16, 2015 18:09
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.

2 participants