We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66ed508 + 107a7a4 commit 57c6d69Copy full SHA for 57c6d69
Tests/Foundation/Tests/TestFileManager.swift
@@ -25,6 +25,12 @@ class TestFileManager : XCTestCase {
25
#endif
26
27
func test_NSTemporaryDirectory() {
28
+ #if os(Windows)
29
+ let validPathSeps: [Character] = ["\\", "/"]
30
+ #else
31
+ let validPathSeps: [Character] = ["/"]
32
+ #endif
33
+
34
let tempDir = NSTemporaryDirectory()
35
XCTAssertTrue(validPathSeps.contains(where: { tempDir.hasSuffix(String($0)) }), "Temporary directory path must end with path separator")
36
}
0 commit comments