mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Updating Swift tests to remove outdated tests and use more current calls.
This commit is contained in:
@@ -210,9 +210,10 @@ NSStringAPIs.test("init(contentsOf:usedEncoding:error:)") {
|
||||
}
|
||||
|
||||
NSStringAPIs.test("init(cString_:encoding:)") {
|
||||
expectEqual("foo, a basmati bar!",
|
||||
String(cString:
|
||||
"foo, a basmati bar!", encoding: String.defaultCStringEncoding))
|
||||
"foo, a basmati bar!".withCString {
|
||||
expectEqual("foo, a basmati bar!",
|
||||
String(cString: $0, encoding: String.defaultCStringEncoding))
|
||||
}
|
||||
}
|
||||
|
||||
NSStringAPIs.test("init(utf8String:)") {
|
||||
|
||||
Reference in New Issue
Block a user