-
Notifications
You must be signed in to change notification settings - Fork 1.2k
SR-1464: NSNumber.description is not compatible between OS X and linux #1724
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -832,19 +832,17 @@ class TestNSString: LoopbackServerTest { | |
XCTAssertEqual(string, "Default value is 1000 (42.0)") | ||
} | ||
|
||
#if false // these two tests expose bugs in icu4c's localization on some linux builds (disable until we can get a uniform fix for this) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this no longer applicable after this patch? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think enabling the |
||
withVaList(argument) { | ||
pointer in | ||
let string = NSString(format: "en_GB value is %d (%.1f)", locale: Locale.init(localeIdentifier: "en_GB"), arguments: pointer) | ||
let string = NSString(format: "en_GB value is %d (%.1f)", locale: Locale.init(identifier: "en_GB") as AnyObject, arguments: pointer) | ||
XCTAssertEqual(string, "en_GB value is 1,000 (42.0)") | ||
} | ||
|
||
withVaList(argument) { | ||
pointer in | ||
let string = NSString(format: "de_DE value is %d (%.1f)", locale: Locale.init(localeIdentifier: "de_DE"), arguments: pointer) | ||
let string = NSString(format: "de_DE value is %d (%.1f)", locale: Locale.init(identifier: "de_DE") as AnyObject, arguments: pointer) | ||
XCTAssertEqual(string, "de_DE value is 1.000 (42,0)") | ||
} | ||
#endif | ||
|
||
withVaList(argument) { | ||
pointer in | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.