tests/testthat/test-should_downsize.R

# library(testthat); library(downsize)
context("should_downsize()")

test_that("Function should_downsize() runs correctly", {
  expect_error(should_downsize())
  expect_error(should_downsize("string"))
  expect_false(should_downsize(NULL))
  expect_false(should_downsize(FALSE))
  expect_true(should_downsize(TRUE))
})

Try the downsize package in your browser

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

downsize documentation built on March 31, 2023, 10:41 p.m.