Skip to content

Commit

Permalink
Add test that demonstrates the moving folders creates invalid path
Browse files Browse the repository at this point in the history
  • Loading branch information
clayellis committed Dec 22, 2017
1 parent 6171f9e commit 2e39fda
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/FilesTests/FilesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,18 @@ class FilesTests: XCTestCase {
XCTAssertEqual(folder.files.count, 1)
}
}

func testMovingFolders() {
performTest {
let a = try folder.createSubfolder(named: "A")
let b = try a.createSubfolder(named: "B")
_ = try b.createSubfolder(named: "C")

try b.move(to: folder)
XCTAssertTrue(folder.containsSubfolder(named: "B"))
XCTAssertTrue(b.containsSubfolder(named: "C"))
}
}

func testCopyingFolders() {
performTest {
Expand Down

0 comments on commit 2e39fda

Please sign in to comment.