tests/testthat/test-cat.R

test_that("cat_line appends to file", {
  tmp <- tempfile()
  cat_line("a", file = tmp)
  cat_line("b", file = tmp)
  expect_equal(readLines(tmp), c("a", "b"))
})
r-pkgs/boxes documentation built on Sept. 20, 2024, 6:41 a.m.