tests/testthat/test-package.R

context("package")

test_that("package", {

  user <- "user"

  expect_false(is.named(user))
  names(user) <- user
  expect_true(is.named(user))

  dir <- file.path(tempdir(), "temp")
  dir.create(dir)
  expect_true(ps_create_dir(dir))

  dir <- file.path(tempdir(), "temp")
  dir.create(dir)
  expect_true(ps_create_dir(dir))
})
poissonconsulting/skeletonpkg documentation built on May 18, 2019, 10:15 a.m.