tests/testthat/test-function-cmdLinePath.R

test_that("cmdLinePath() works", {

  expect_error(cmdLinePath())
  
  y <- cmdLinePath("x/y/z")
  
  expect_is(y, "character")
  
  expect_true(grepl('^".*"$', y))
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.