Skip to content

Refactroing TypeName tests #2901

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 1 commit into from
Jun 6, 2016
Merged

Conversation

frootloops
Copy link
Contributor

I have only one question how can I avoid using main and use something like [[THIS]] for * StdlibUnittest*?

// REQUIRES: executable_test

import Foundation
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need Foundation? (It wasn't imported before.)

@gribozavr
Copy link
Contributor

I have only one question how can I avoid using main and use something like [[THIS]] for * StdlibUnittest*?

You can define a string in the global scope and use it in string interpolation everywhere, but I think it is perfectly fine to hardcode main.

@gribozavr
Copy link
Contributor

LGTM modulo the Foundation comment.

@gribozavr
Copy link
Contributor

@swift-ci Please test

@frootloops
Copy link
Contributor Author

@gribozavr ok, thanks

@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 4f0d2a7 into swiftlang:master Jun 6, 2016
@frootloops frootloops deleted the type-name branch October 9, 2016 16:02
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