mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Attempt to fix a test for NSString API on String when run on OS X 10.9
Swift SVN r21041
This commit is contained in:
@@ -1181,8 +1181,14 @@ NSStringAPIs.test("stringByPaddingToLength(_:withString:startingAtIndex:)") {
|
||||
15, withString: "XYZ", startingAtIndex: 1))
|
||||
}
|
||||
|
||||
NSStringAPIs.test("stringByRemovingPercentEncoding") {
|
||||
NSStringAPIs.testXFail(
|
||||
"stringByRemovingPercentEncoding/OSX 10.9",
|
||||
xfail: [.OSXMinor(10, 9, reason: "looks like a bug in Foundation in OS X 10.9")]
|
||||
) {
|
||||
expectOptionalEqual("", "".stringByRemovingPercentEncoding)
|
||||
}
|
||||
|
||||
NSStringAPIs.test("stringByRemovingPercentEncoding") {
|
||||
expectEmpty("%".stringByRemovingPercentEncoding)
|
||||
expectOptionalEqual(
|
||||
"abcd абвг",
|
||||
|
||||
Reference in New Issue
Block a user