File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ open class NSKeyedArchiver : NSCoder {
612
612
613
613
if _isContainer ( object) {
614
614
guard let codable = object as? NSCoding else {
615
- fatalError ( " Object \( String ( describing: object) ) does not conform to NSCoding " )
615
+ fatalError ( " Object \( String ( describing: object) ) does not conform to NSCoding " )
616
616
}
617
617
618
618
let innerEncodingContext = EncodingContext ( )
Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ open class NSKeyedUnarchiver : NSCoder {
454
454
455
455
guard let classReference = innerDecodingContext. dict [ " $class " ] as? _NSKeyedArchiverUID else {
456
456
throw _decodingError ( CocoaError . coderReadCorrupt,
457
- withDescription: " Invalid class reference \( String ( describing: innerDecodingContext. dict [ " $class " ] ) ) . The data may be corrupt. " )
457
+ withDescription: " Invalid class reference \( String ( describing: innerDecodingContext. dict [ " $class " ] ) ) . The data may be corrupt. " )
458
458
}
459
459
460
460
var classToConstruct : AnyClass ? = try _validateAndMapClassReference ( classReference,
Original file line number Diff line number Diff line change @@ -158,23 +158,23 @@ class TestNSURL : XCTestCase {
158
158
differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( testedValue) ' " )
159
159
}
160
160
} else {
161
- differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
161
+ differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
162
162
}
163
163
} else if let expectedValue = obj as? [ String ] {
164
164
if let testedValue = got [ key] as? [ String ] {
165
165
if expectedValue != testedValue {
166
166
differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( testedValue) ' " )
167
167
}
168
168
} else {
169
- differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
169
+ differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
170
170
}
171
171
} else if let expectedValue = obj as? Int {
172
172
if let testedValue = got [ key] as? Int {
173
173
if expectedValue != testedValue {
174
174
differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( testedValue) ' " )
175
175
}
176
176
} else {
177
- differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
177
+ differences. append ( " \( key) Expected = ' \( expectedValue) ', Got = ' \( String ( describing: got [ key] ) ) ' " )
178
178
}
179
179
}
180
180
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ class TestNSXMLDocument : XCTestCase {
67
67
68
68
func test_basicCreation( ) {
69
69
let doc = XMLDocument ( rootElement: nil )
70
- XCTAssert ( doc. version == " 1.0 " , " expected 1.0, got \( String ( describing: doc. version) ) " )
70
+ XCTAssert ( doc. version == " 1.0 " , " expected 1.0, got \( String ( describing: doc. version) ) " )
71
71
doc. version = " 1.1 "
72
- XCTAssert ( doc. version == " 1.1 " , " expected 1.1, got \( String ( describing: doc. version) ) " )
72
+ XCTAssert ( doc. version == " 1.1 " , " expected 1.1, got \( String ( describing: doc. version) ) " )
73
73
let node = XMLElement ( name: " Hello " , uri: " http://www.example.com " )
74
74
75
75
doc. setRootElement ( node)
You can’t perform that action at this time.
0 commit comments