Skip to content

Commit 8bafb05

Browse files
committed
Tests: convert some assertions into XCTest forms
Use the `XCTAssert*` helpers to validate the state to get proper diagnostics emitted for test failures. This should help debugging failures.
1 parent 9bcec05 commit 8bafb05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Foundation/Tests/TestNSString.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,9 @@ class TestNSString: LoopbackServerTest {
10051005
let userName = NSUserName()
10061006
let homeDir2 = NSHomeDirectoryForUser(userName)
10071007
let homeDir3 = NSHomeDirectory()
1008-
XCTAssert(homeDir != nil && homeDir == homeDir2 && homeDir == homeDir3, "Could get user' home directory")
1008+
XCTAssertNotNil(homeDir)
1009+
XCTAssertEqual(homeDir, homeDir2)
1010+
XCTAssertEqual(homeDir, homeDir3)
10091011
}
10101012

10111013
func test_expandingTildeInPath() {

0 commit comments

Comments
 (0)