mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
This commit is contained in:
@@ -1396,8 +1396,8 @@ NSStringAPIs.test("folding(options:locale:)") {
|
||||
|
||||
func fwo(
|
||||
s: String, _ options: NSStringCompareOptions
|
||||
)(loc: NSLocale?) -> String {
|
||||
return s.folding(options: options, locale: loc)
|
||||
) -> (NSLocale?) -> String {
|
||||
return { loc in s.stringByFoldingWithOptions(options, locale: loc) }
|
||||
}
|
||||
|
||||
expectLocalizedEquality("abcd", fwo("abCD", .CaseInsensitiveSearch), "en")
|
||||
|
||||
Reference in New Issue
Block a user