Skip to content

Tests: convert some assertions into XCTest forms #4691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Tests/Foundation/Tests/TestNSString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,9 @@ class TestNSString: LoopbackServerTest {
let userName = NSUserName()
let homeDir2 = NSHomeDirectoryForUser(userName)
let homeDir3 = NSHomeDirectory()
XCTAssert(homeDir != nil && homeDir == homeDir2 && homeDir == homeDir3, "Could get user' home directory")
XCTAssertNotNil(homeDir)
XCTAssertEqual(homeDir, homeDir2)
XCTAssertEqual(homeDir, homeDir3)
}

func test_expandingTildeInPath() {
Expand Down