tests/testthat/test-sleep.R

test_that("The number of seconds must be an integer", {
  expect_error(
    .sleep("1"))
})

test_that("Expect no errors if the number of seconds is correct", {
  expect_no_error(
    .sleep(1))
})

Try the distilleR package in your browser

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

distilleR documentation built on April 24, 2026, 1:07 a.m.