tests/testthat/test-print.R

test_that("print with default and explicit positions.limit", {

  # Turn off ANSI colours provided by {crayon}
  withr::local_options("crayon.enabled" = FALSE)


  bad1 <- system.file("bad1", package = "goodpractice")
  x <- gp(bad1, checks = "truefalse_not_tf")

  testthat::expect_snapshot (print (x))
})

Try the goodpractice package in your browser

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

goodpractice documentation built on June 22, 2024, 9:55 a.m.