tests/testthat/test-print-condformat.R

test_that("print.condformat_tbl returns its input", {
  data(iris)
  x <- condformat(head(iris, n = 1))
  # capture.output is used so we don't pollute the test output
  utils::capture.output(out <- print(x, viewer = NULL))
  expect_identical(out, x)
})
zeehio/condformat documentation built on Oct. 11, 2023, 5:42 a.m.