tests/testthat/test_get_dirs.R

# Thest the get_dirs
# 20190911 by JJAV
# # # # # # # # # # # #
context("Test get_dirs")

test_that("get_dirs works fine" , {
  curdir  = getwd()
  #cat("\nCurrent directory: ", curdir,"\n")
  tmpfile <- tempfile()
  dir.create(tmpfile)
  setwd(tmpfile)

  make_structure()
  dirs <- get_dirs()
  expect_type(dirs,"list")
  # clean the messs
  setwd(curdir)
  unlink(tmpfile, recursive = T, force = T)

})
johnaponte/repana documentation built on Feb. 24, 2025, 3:35 a.m.