@@ -104,12 +104,19 @@ TEST(@"+[fileURLWithPath:]", [[[OFURL fileURLWithPath: @"testfile.txt"] fileSystemRepresentation] isEqual: [[OFFileManager defaultManager].currentDirectoryPath stringByAppendingPathComponent: @"testfile.txt"]]) -# ifdef OF_WINDOWS +# if defined(OF_WINDOWS) || defined(OF_MSDOS) OFURL *tmp; + TEST(@"+[fileURLWithPath:] for c:\\", + (tmp = [OFURL fileURLWithPath: @"c:\\"]) && + [tmp.string isEqual: @"file:///c:/"] && + [tmp.fileSystemRepresentation isEqual: @"c:\\"]) +# endif + +# ifdef OF_WINDOWS TEST(@"+[fileURLWithPath:] with UNC", (tmp = [OFURL fileURLWithPath: @"\\\\foo\\bar"]) && [tmp.host isEqual: @"foo"] && [tmp.path isEqual: @"/bar"] && [tmp.string isEqual: @"file://foo/bar"] && [tmp.fileSystemRepresentation isEqual: @"\\\\foo\\bar"] &&