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

Remove temporary workaround for SR-3202 #1043

Merged
merged 2 commits into from
Jun 21, 2017
Merged

Remove temporary workaround for SR-3202 #1043

merged 2 commits into from
Jun 21, 2017

Conversation

skyline75489
Copy link
Contributor

With the help of #1020 I believe we can safely remove the workaround here.

CC @jszumski

@jszumski
Copy link
Contributor

Looks good, thank you!

@alblue
Copy link
Contributor

alblue commented Jun 14, 2017

@swift-ci please test

@skyline75489
Copy link
Contributor Author

It seems that Locale("en_UK") are returning same value as Locale("en_US") and causing the test failure on linux.

The workaround certainly returns different value for "en_UK" and "en_US". I'm a little confused here. What's the expected behavior?

@alblue
Copy link
Contributor

alblue commented Jun 20, 2017

@swift-ci please test

@alblue alblue merged commit 9728b28 into swiftlang:master Jun 21, 2017
@skyline75489
Copy link
Contributor Author

Sorry for breaking the tests. I didn't expect such a early merge. I'm not really familiar with the different metrics in the western culture myself. Will look into it.

@alblue
Copy link
Contributor

alblue commented Jun 21, 2017 via email

@skyline75489
Copy link
Contributor Author

Yeah if that's OK. I can come up with a new PR for this.

@pushkarnk
Copy link
Member

Yeah, reverting only the tests seems like a good idea for now

@skyline75489
Copy link
Contributor Author

The whole commit should be reverted. The GB UK thing doesn't really matter.

@alblue alblue mentioned this pull request Jun 21, 2017
@alblue
Copy link
Contributor

alblue commented Jun 21, 2017

It looks like the issue is due to some state leftover with the regional tests:

https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/3658/console

Test Case 'TestNSLengthFormatter.test_stringFromMetersMetric' started at 2017-06-21 10:16:31.688
TestFoundation/TestNSLengthFormatter.swift:71: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("-6.214 mi") is not equal to ("-10 km") - 
TestFoundation/TestNSLengthFormatter.swift:72: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("-0.001 mi") is not equal to ("-0.001 km") - 
TestFoundation/TestNSLengthFormatter.swift:73: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("0 in") is not equal to ("0.01 mm") - 

@skyline75489
Copy link
Contributor Author

Yeah, I'll have a look and try to figure out what mi actually means.

@alblue
Copy link
Contributor

alblue commented Jun 21, 2017

It is short for 'miles' - it's saying that 10 kilometres is 6.214 miles. I think because something is selecting the en_GB locale that it's reporting large distances in miles and kilometres, and small distances in inches instead of millimetres.

@alblue
Copy link
Contributor

alblue commented Jun 21, 2017

The build of #1056 has succeeded, so master is green again:

https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/3661/console

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