tests/testthat/test-open_file.R

test_that("open_file works", {

  file_to_open <- tempfile(fileext = ".txt")
  write("Hello World!", file = file_to_open, append = TRUE)

  testthat::expect_error(open_file(file_to_open), NA)
  
})
edalfon/efun documentation built on June 23, 2024, 4:17 a.m.