Skip to content

NSPredicate partial implementation #716

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 2 commits into from
Nov 17, 2016
Merged

Conversation

naithar
Copy link
Contributor

@naithar naithar commented Nov 14, 2016

Implementation and test for NSPredicate's NSCoding, NSCopying.
Additionally implemented .predicateFormat

switch (other.kind, self.kind) {
case (.boolean(let otherBool), .boolean(let selfBool)):
return otherBool == selfBool
// TODO: case for init(format:argumentArray:)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we continue to represent these TODOs as NSUnimplemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would require implementing cases for format:argumentArray: and fromMetadataQueryString: in NSPredicate. If it's not an issue, then TODOs can be switched with NSUnimplemented. It'll also be more obvious for future implementation of missing functionality.

@parkera
Copy link
Contributor

parkera commented Nov 17, 2016

@swift-ci please test and merge

@parkera
Copy link
Contributor

parkera commented Nov 17, 2016

Thanks!

@swift-ci swift-ci merged commit df27829 into swiftlang:master Nov 17, 2016
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.

3 participants