tests/testthat/test-ard_total_n.R

test_that("ard_total_n() works", {
  expect_snapshot(
    ard_total_n(ADSL) |>
      as.data.frame()
  )

  expect_snapshot(
    error = TRUE,
    ard_total_n(letters)
  )
})

test_that("ard_total_n() follows ard structure", {
  expect_silent(
    ard_total_n(ADSL) |>
      check_ard_structure(method = FALSE)
  )
})

Try the cards package in your browser

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

cards documentation built on Oct. 4, 2024, 1:09 a.m.