Skip to content

Make NSPredicate expectation constructor API accept nil object #219

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

Conversation

stmontgomery
Copy link
Contributor

  • Change the object parameter of XCTestCase.expectation(for:evaluatedWith:handler:) from
    type AnyObject to Any? with a default value of nil. This more closely matches the
    type of the object parameter from the NSPredicate initializer.
  • Modify the internally-formatted description string to match ObjC XCTest implementation.
  • Update and add new unit tests

- Change the object parameter of `XCTestCase.expectation(for:evaluatedWith:handler:)` from
  type `AnyObject` to `Any?` with a default value of `nil`. This more closely matches the
  type of the object parameter from the NSPredicate initializer.
- Modify the internally-formatted `description` string to match ObjC XCTest implementation.
- Update and add new unit tests
@stmontgomery stmontgomery self-assigned this Aug 16, 2018
@stmontgomery
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@briancroom briancroom left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@stmontgomery stmontgomery merged commit 202dcc3 into swiftlang:master Aug 20, 2018
@stmontgomery stmontgomery deleted the expectationForPredicate-nilObject branch October 8, 2018 16:43
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