tests/testthat/test-ard_formals.R

test_that("ard_formals() works", {
  expect_snapshot(
    ard_formals(fun = mcnemar.test, arg_names = "correct")
  )

  expect_snapshot(
    ard_formals(
      fun = asNamespace("stats")[["t.test.default"]],
      arg_names = c("mu", "paired", "var.equal", "conf.level"),
      passed_args = list(conf.level = 0.90)
    )
  )
})

Try the cards package in your browser

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

cards documentation built on Dec. 2, 2025, 9:07 a.m.