tests/testthat/test-file_path.R

context("Checking file_path")

test_that("file_path creates a file path",{

    expect_equal(
        as.character(file_path("mydir", paste0("file", 1:2, ".pdf"))),
        c("mydir/file1.pdf", "mydir/file2.pdf")
    )

})
trinker/pathr documentation built on May 31, 2019, 9:41 p.m.