tests/testthat/test-fileDepth.R

test_that("fileDepth", {
    expect_identical(
        fileDepth(path = "/"),
        expected = 0L
    )
    ## Note that `/tmp` is symlinked to `/private/tmp` on macOS, so don't use
    ## that for testing here.
    expect_identical(
        object = fileDepth(path = file.path("", "dev")),
        expected = 1L
    )
})
acidgenomics/AcidBase documentation built on Jan. 28, 2024, 2:59 a.m.