Skip to content

Commit 0f26415

Browse files
committed
Test logging
1 parent 7cd1e76 commit 0f26415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/Foundation/TestFileManager.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,14 @@ class TestFileManager : XCTestCase {
13561356
let code = ($0 as? CocoaError)?.code
13571357
XCTAssertEqual(code, emptyFileNameError ?? .fileNoSuchFile)
13581358
}
1359+
1360+
var bIsDirectory = false
1361+
let absoluteDestURL = URL(filePath: "", relativeTo: URL(filePath: "/test_emptyFilename_nonExistent", directoryHint: .notDirectory))
1362+
print("absolute URL: \(absoluteDestURL)")
1363+
print("absolute path: \(absoluteDestURL.path)")
1364+
print("file exists: \(fm.fileExists(atPath: absoluteDestURL.path, isDirectory: &bIsDirectory))")
1365+
print("is directory: \(bIsDirectory)")
1366+
13591367
XCTAssertThrowsError(try fm.createSymbolicLink(atPath: "/test_emptyFilename_nonExistent", withDestinationPath: "")) {
13601368
let code = ($0 as? CocoaError)?.code
13611369
XCTAssertEqual(code, .fileNoSuchFile)

0 commit comments

Comments
 (0)