mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Foundation overlay: add String.stringByApplyingTransform()"
Speculatively reverted because of iOS bot failure. Swift SVN r28261
This commit is contained in:
@@ -1583,32 +1583,6 @@ NSStringAPIs.test("writeToURL(_:atomically:encoding:error:)") {
|
||||
}
|
||||
}
|
||||
|
||||
NSStringAPIs.test("stringByApplyingTransform(_:reverse:)") {
|
||||
if #available(OSX 10.11, iOS 9.0, *) {
|
||||
if true {
|
||||
let source = "tre\u{300}s k\u{fc}hl"
|
||||
expectEqual(
|
||||
"tres kuhl",
|
||||
source.stringByApplyingTransform(
|
||||
NSStringTransformStripDiacritics, reverse: false))
|
||||
}
|
||||
if true {
|
||||
let source = "hiragana"
|
||||
expectEqual(
|
||||
"ひらがな",
|
||||
source.stringByApplyingTransform(
|
||||
NSStringTransformLatinToHiragana, reverse: false))
|
||||
}
|
||||
if true {
|
||||
let source = "ひらがな"
|
||||
expectEqual(
|
||||
"hiragana",
|
||||
source.stringByApplyingTransform(
|
||||
NSStringTransformLatinToHiragana, reverse: true))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct ComparisonTest {
|
||||
let expectedUnicodeCollation: ExpectedComparisonResult
|
||||
let lhs: String
|
||||
|
||||
Reference in New Issue
Block a user