mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Protocol names end in "Type," "ible," or "able"
Mechanically add "Type" to the end of any protocol names that don't end in "Type," "ible," or "able." Also, drop "Type" from the end of any associated type names, except for those of the *LiteralConvertible protocols. There are obvious improvements to make in some of these names, which can be handled with separate commits. Fixes <rdar://problem/17165920> Protocols `Integer` etc should get uglier names. Swift SVN r19883
This commit is contained in:
@@ -652,7 +652,7 @@ NSStringAPIs.test("init(format:_:...)") {
|
||||
|
||||
NSStringAPIs.test("init(format:arguments:)") {
|
||||
let world: NSString = "world"
|
||||
let args: [CVarArg] = [ world, 42 ]
|
||||
let args: [CVarArgType] = [ world, 42 ]
|
||||
expectEqual("Hello, world!%42",
|
||||
String(format: "Hello, %@!%%%ld", arguments: args))
|
||||
}
|
||||
@@ -667,7 +667,7 @@ NSStringAPIs.test("init(format:locale:_:...)") {
|
||||
|
||||
NSStringAPIs.test("init(format:locale:arguments:)") {
|
||||
let world: NSString = "world"
|
||||
let args: [CVarArg] = [ world, 42 ]
|
||||
let args: [CVarArgType] = [ world, 42 ]
|
||||
expectEqual("Hello, world!%42", String(format: "Hello, %@!%%%ld",
|
||||
locale: nil, arguments: args))
|
||||
expectEqual("Hello, world!%42", String(format: "Hello, %@!%%%ld",
|
||||
|
||||
Reference in New Issue
Block a user