tests/testthat/test-dot-checktab.R

test_that(".checktab returns a non zero character string if invalid input", {
  x <- brmsmargins:::.checktab(1:5)
  expect_type(x, "character")
  expect_true(nzchar(x))
})

test_that(".checktab returns an empty character string if invalid input", {
  x <- brmsmargins:::.checktab(mtcars)
  expect_type(x, "character")
  expect_false(nzchar(x))
})

Try the brmsmargins package in your browser

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

brmsmargins documentation built on May 20, 2022, 1:07 a.m.