tests/testthat/test-files.R

context("Loading files into R")

test_that("System path is missing",{
  expect_error(load_files(),"System path to the directory with files must be specified")
  expect_error(load_files(""), "Ensure you are in the correct path or the directory has a csv file")
  expect_error(load_files("/"), "Ensure you are in the correct path or the directory has a csv file")
})
INyabuto/a360importer documentation built on Jan. 9, 2020, 4:25 p.m.