Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

516 B
Raw Blame
import Foundation
@testable import Peel
import Testing

struct FullPathTests {
    @Test func aFolderPathEndsWithoutASlashAsFinderCopiesIt() {
        #expect(URL(filePath: "/Users/me/Library/Caches/org.example/", directoryHint: .isDirectory).fullPath
            == "/Users/me/Library/Caches/org.example")
        #expect(URL(filePath: "/Users/me/a file.txt", directoryHint: .notDirectory).fullPath == "/Users/me/a file.txt")
        #expect(URL(filePath: "/", directoryHint: .isDirectory).fullPath == "/")
    }
}