Skip to content

[SR-1589] Add non-throwing testCase() wrapper function. #115

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

Closed
wants to merge 1 commit into from

Conversation

ddunbar
Copy link
Contributor

@ddunbar ddunbar commented May 23, 2016

  • This is useful in clients which would like to use Swift type inference to
    define the allTests array. If none of the tests in the class throw, Swift
    will infer the type of that array as (String, (T) -> () -> ()) which is not
    convertible to the type expected by the testCase method.
  • Resolves: https://bugs.swift.org/browse/SR-1589

 - This is useful in clients which would like to use Swift type inference to
   define the `allTests` array. If none of the tests in the class throw, Swift
   will infer the type of that array as `(String, (T) -> () -> ())` which is not
   convertible to the type expected by the `testCase` method.

 - Resolves: https://bugs.swift.org/browse/SR-1589
@ddunbar
Copy link
Contributor Author

ddunbar commented May 23, 2016

CC @modocache @briancroom

@ddunbar ddunbar changed the title Add non-throwing testCase() wrapper function. [SR-1589] Add non-throwing testCase() wrapper function. May 23, 2016
@ddunbar ddunbar closed this May 23, 2016
@ddunbar ddunbar deleted the SR-1589 branch May 23, 2016 17:38
@ddunbar ddunbar restored the SR-1589 branch May 23, 2016 17:38
@ddunbar ddunbar deleted the SR-1589 branch May 23, 2016 17:38
@ddunbar ddunbar restored the SR-1589 branch May 23, 2016 17:38
@ddunbar
Copy link
Contributor Author

ddunbar commented May 24, 2016

I didn't intentionally close this, part of the GitHub server issues this morning I think. Reopened as #116

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.

1 participant