You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: