Skip to content

Commit 89fc20f

Browse files
committed
Correct the scope of the assert for the string check
1 parent 782fd54 commit 89fc20f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TestFoundation/TestNSString.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,10 @@ class TestNSString : XCTestCase {
237237

238238
do {
239239
let str = try NSString(contentsOfFile: testFilePath!, encoding: NSUTF8StringEncoding)
240+
XCTAssertEqual(str, "swift-corelibs-foundation")
240241
} catch {
241242
XCTFail("Unable to init NSString from contentsOfFile:encoding:")
242243
}
243-
244-
XCTAssertEqual(str, "swift-corelibs-foundation")
245244
}
246245

247246
func test_uppercaseString() {

0 commit comments

Comments
 (0)