tests/testthat/test-readcsv.R

library(lubridate)

context("testing the function to read csv file")

test_that("test if the csv file read is correct", {
  # Expect that the read file function return values not NULL
  expect_true(!is.null(patient_link))
  expect_true(!is.null(patient_node))
  expect_true(!is.null(vietnam_daily))
  # Must return error if files are not found
  expect_error(readData("testdata"))
})
etc5523-2020/r-package-assessment-HanseNgo305 documentation built on Jan. 1, 2021, 1:10 a.m.