mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add spaces before and after closure arrow in test
This commit is contained in:
@@ -259,9 +259,9 @@ NSStringAPIs.test("localizedCapitalizedString") {
|
||||
/// executed in the given localeID
|
||||
func expectLocalizedEquality(
|
||||
expected: String,
|
||||
_ op: (_: NSLocale?)->String,
|
||||
_ op: (_: NSLocale?) -> String,
|
||||
_ localeID: String? = nil,
|
||||
@autoclosure _ message: ()->String = "",
|
||||
@autoclosure _ message: () -> String = "",
|
||||
showFrame: Bool = true,
|
||||
stackTrace: SourceLocStack = SourceLocStack(),
|
||||
file: String = __FILE__, line: UInt = __LINE__
|
||||
@@ -2143,7 +2143,7 @@ func getNullCString() -> UnsafeMutablePointer<CChar> {
|
||||
return nil
|
||||
}
|
||||
|
||||
func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
|
||||
let up = UnsafeMutablePointer<CChar>.alloc(100)
|
||||
up[0] = 0x61
|
||||
up[1] = 0x62
|
||||
@@ -2151,7 +2151,7 @@ func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
return (up, { up.dealloc(100) })
|
||||
}
|
||||
|
||||
func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
|
||||
let up = UnsafeMutablePointer<UInt8>.alloc(100)
|
||||
up[0] = 0xd0
|
||||
up[1] = 0xb0
|
||||
@@ -2162,7 +2162,7 @@ func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
}
|
||||
|
||||
func getIllFormedUTF8String1(
|
||||
) -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
) -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
|
||||
let up = UnsafeMutablePointer<UInt8>.alloc(100)
|
||||
up[0] = 0x41
|
||||
up[1] = 0xed
|
||||
@@ -2174,7 +2174,7 @@ func getIllFormedUTF8String1(
|
||||
}
|
||||
|
||||
func getIllFormedUTF8String2(
|
||||
) -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
|
||||
) -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
|
||||
let up = UnsafeMutablePointer<UInt8>.alloc(100)
|
||||
up[0] = 0x41
|
||||
up[1] = 0xed
|
||||
|
||||
Reference in New Issue
Block a user