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

Generic XCTest'ing components for conformance to protocols. #44

Open
dabrahams opened this issue May 25, 2020 · 1 comment
Open

Generic XCTest'ing components for conformance to protocols. #44

dabrahams opened this issue May 25, 2020 · 1 comment

Comments

@dabrahams
Copy link
Collaborator

It's super easy to build what you assume to be a correct model of a protocol and have it function perfectly well in tests of other components but also be utterly broken. You need to test the semantics of all the protocol requirements, and doing that for a commonly-modeled protocol like Collection is tedious and error-prone. We need a set of testing components for common protocols akin to what's in https://github.com/apple/swift/tree/master/stdlib/private/StdlibCollectionUnittest but based on XCTest.

@dabrahams
Copy link
Collaborator Author

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

No branches or pull requests

1 participant