Skip to content

Use XCTFail over XCTAssertNil for substructure matching #806

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
Sep 16, 2022

Conversation

bnbarham
Copy link
Contributor

There's no reason to print the nil assertion message when matching tree substructures - we just want the diff message itself.

There's no reason to print the nil assertion message when matching
tree substructures - we just want the diff message itself.
@bnbarham bnbarham requested a review from ahoppen as a code owner September 16, 2022 20:45
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit ca99b28 into swiftlang:main Sep 16, 2022
@bnbarham bnbarham deleted the small-test-improvement branch September 16, 2022 22:54
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