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

[StdLib] Refactor ObjC code in Set validation tests #970

Closed
wants to merge 2 commits into from
Closed

[StdLib] Refactor ObjC code in Set validation tests #970

wants to merge 2 commits into from

Conversation

ezephir
Copy link

@ezephir ezephir commented Jan 14, 2016

This PR is not ready for merging because it depends on input file refactoring, (which is in it's own PR -- #968). It is also included below so that the PR makes sense. As soon as that PR is merged, I will rebase this one on top of it.

Move tests that need the Objective-C runtime into their own file and remove the
XFAIL on Linux. This partially resolves SR-216.

Tested on Ubuntu 14.04 and OS X 10.10.

I ran into a little snag here. The type checker does not like to type check AnyObject in these files. The code works but is very sensitive. Unrelated code changes will cause type checking to fail. Unlike the Dictionary test refactoring in PR #969, I was able to get this to work without including unnecessary code in order to make the type checker happy.

I've opened SR 524 and SR 525 with minimized test cases for this behavior. Is this satisfactory?

Emanuel Zephir added 2 commits January 19, 2016 21:20
Split the input file into a pure Swift and Objective-C interop files in
anticipation of refactoring tests to remove XFAILs on Linux.
Move tests that need the Objective-C runtime into their own file and remove the
XFAIL on Linux. This partially resolves SR-216.
@swift-ci
Copy link
Collaborator

Can one of the admins verify this patch?

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.

None yet

3 participants