File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,8 @@ class TestNSString : XCTestCase {
309
309
do {
310
310
var encoding : UInt = 0
311
311
let string = try NSString ( contentsOf: testFileURL, usedEncoding: & encoding)
312
- XCTAssertNotEqual ( string, " NSString fromURL usedEncoding test with UTF16 BE file " , " Wrong result when reading UTF16BE file " )
313
- XCTAssertNotEqual ( encoding, String . Encoding. utf16BigEndian. rawValue, " Wrong encoding detected from UTF16BE file " )
312
+ XCTAssertEqual ( string, " NSString fromURL usedEncoding test with UTF16 BE file " , " Wrong result when reading UTF16BE file " )
313
+ XCTAssertEqual ( encoding, String . Encoding. utf16BigEndian. rawValue, " Wrong encoding detected from UTF16BE file " )
314
314
} catch {
315
315
XCTFail ( " Unable to init NSString from contentsOf:encoding: " )
316
316
}
Original file line number Diff line number Diff line change 459
459
'TestFoundation/Resources/NSURLTestData.plist' ,
460
460
'TestFoundation/Resources/Test.plist' ,
461
461
'TestFoundation/Resources/NSStringTestData.txt' ,
462
+ 'TestFoundation/Resources/NSString-UTF16-BE-data.txt' ,
462
463
'TestFoundation/Resources/NSXMLDocumentTestData.xml' ,
463
464
'TestFoundation/Resources/PropertyList-1.0.dtd' ,
464
465
'TestFoundation/Resources/NSXMLDTDTestData.xml' ,
You can’t perform that action at this time.
0 commit comments