tests/testthat/test-utils.R

test_that("utils works", {
  res <- testthat::capture_output({
    cat_green_tick("test")
  })
  expect_true(
    grepl(
      "test",
      res
    )
  )
  res <- testthat::capture_output({
    cat_red_bullet("test")
  })
  expect_true(
    grepl(
      "test",
      res
    )
  )
  res <- testthat::capture_output({
    cat_info("test")
  })
  expect_true(
    grepl(
      "test",
      res
    )
  )
})

Try the dockerfiler package in your browser

Any scripts or data that you put into this service are public.

dockerfiler documentation built on Nov. 13, 2023, 5:09 p.m.