tests/testthat/test-tweaks.R

test_that("tweaks work as expected", {
  expect_true(names(formals(tweaks))[[1]] == "...")
  expect_warning(tweaks(`_oooops` = 42, `_darn` = -1), "_oooops, _darn")
  expect_warning(tweaks(), NA)
  expect_warning(tweaks(5), "named")
  expect_warning(tweaks(5, `_ooops` = 42), "named")
  expect_warning(tweaks(constructor_name = "constr"), NA)
})

Try the DBItest package in your browser

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

DBItest documentation built on June 22, 2024, 11:55 a.m.