Skip to content

Tests for TimeZone.localizedName #612

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
Sep 1, 2016

Conversation

saiHemak
Copy link
Contributor

No description provided.

func test_localizedName(){
let initialTimeZone = NSTimeZone.default
NSTimeZone.default = TimeZone(identifier: "America/New_York")!
let defaultTimezone = NSTimeZone.default
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: for consistent capitalization, this should be defaultTimeZone

@@ -117,6 +117,20 @@ class TestNSTimeZone: XCTestCase {
let known = NSTimeZone.knownTimeZoneNames
XCTAssertNotEqual([], known, "known time zone names not expected to be empty")
}

func test_localizedName(){
Copy link
Contributor

Choose a reason for hiding this comment

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

I've got a few nits myself before I'm ready to merge, if you don't mind. test_localizedName(){test_localizedName() {

@saiHemak
Copy link
Contributor Author

saiHemak commented Sep 1, 2016

@itaiferber Thanks for the review.I have addressed your comments ..

@itaiferber
Copy link
Contributor

Looks good to me!

@itaiferber
Copy link
Contributor

@swift-ci Please test

@itaiferber itaiferber merged commit 0dc0dac into swiftlang:master Sep 1, 2016
@itaiferber
Copy link
Contributor

@parkera Should this be submitted against swift-3.0-branch?

@parkera
Copy link
Contributor

parkera commented Sep 1, 2016

Let's leave it on master; no need for pure testing code on the swift 3 branch.

@saiHemak saiHemak deleted the nstimezone-branch branch February 28, 2017 07: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.

4 participants