File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public struct AbsolutePath {
153
153
/// to be a valid path component (i.e., it cannot be empty, contain a path
154
154
/// separator, or be a pseudo-path like '.' or '..').
155
155
public func appending( components names: String ... ) -> AbsolutePath {
156
- return names. reduce ( self , { path, name in
156
+ return names. reduce ( self , combine : { path, name in
157
157
path. appending ( component: name)
158
158
} )
159
159
}
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ class FileSystemTests: XCTestCase {
45
45
_ = try fs. getDirectoryContents ( " /does-not-exist " )
46
46
}
47
47
let thisDirectoryContents = try ! fs. getDirectoryContents ( AbsolutePath ( #file) . parentDirectory)
48
- XCTAssertTrue ( !thisDirectoryContents. contains ( where : { $0 == " . " } ) )
49
- XCTAssertTrue ( !thisDirectoryContents. contains ( where : { $0 == " .. " } ) )
50
- XCTAssertTrue ( thisDirectoryContents. contains ( where : { $0 == #file. basename } ) )
48
+ XCTAssertTrue ( !thisDirectoryContents. contains ( { $0 == " . " } ) )
49
+ XCTAssertTrue ( !thisDirectoryContents. contains ( { $0 == " .. " } ) )
50
+ XCTAssertTrue ( thisDirectoryContents. contains ( { $0 == #file. basename } ) )
51
51
}
52
52
53
53
func testLocalCreateDirectory( ) throws {
You can’t perform that action at this time.
0 commit comments