File tree 1 file changed +13
-9
lines changed
Tests/BasicsTests/Serialization
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ import _InternalTestSupport // for skipOnWindowsAsTestCurrentlyFails
16
16
17
17
final class SerializedJSONTests : XCTestCase {
18
18
func testPathInterpolation( ) throws {
19
- try skipOnWindowsAsTestCurrentlyFails ( )
20
-
21
19
var path = try AbsolutePath ( validating: #"/test\backslashes"# )
22
20
var json : SerializedJSON = " \( path) "
23
21
@@ -28,20 +26,26 @@ final class SerializedJSONTests: XCTestCase {
28
26
#endif
29
27
30
28
#if os(Windows)
31
- path = try AbsolutePath ( validating: #"\\?\C:\Users "# )
29
+ path = try AbsolutePath ( validating: #"\??\Volumes{b79de17a-a1ed-4c58-a353-731b7c4885a6}\\ "# )
32
30
json = " \( path) "
33
31
32
+ XCTAssertEqual ( json. underlying, #"\\??\\Volumes{b79de17a-a1ed-4c58-a353-731b7c4885a6}"# )
33
+ #endif
34
+ }
35
+
36
+ func testPathInterpolationFailsOnWindows( ) throws {
37
+ try skipOnWindowsAsTestCurrentlyFails ( because: " Expectations are not met " )
38
+
39
+ #if os(Windows)
40
+ var path = try AbsolutePath ( validating: #"\\?\C:\Users"# )
41
+ var json : SerializedJSON = " \( path) "
42
+
34
43
XCTAssertEqual ( json. underlying, #"C:\\Users"# )
35
44
36
45
path = try AbsolutePath ( validating: #"\\.\UNC\server\share\"# )
37
46
json = " \( path) "
38
47
39
48
XCTAssertEqual ( json. underlying, #"\\.\\UNC\\server\\share"# )
40
-
41
- path = try AbsolutePath ( validating: #"\??\Volumes{b79de17a-a1ed-4c58-a353-731b7c4885a6}\\"# )
42
- json = " \( path) "
43
-
44
- XCTAssertEqual ( json. underlying, #"\\??\\Volumes{b79de17a-a1ed-4c58-a353-731b7c4885a6}"# )
45
- #endif
49
+ #endif
46
50
}
47
51
}
You can’t perform that action at this time.
0 commit comments