tests/testthat/test_timespan_format.R

test_that("format.timespan properly indicates entirely abscent timespans", {
  expect_silent(tmspn <- as.timespan(""))
  expect_silent(fmt <- crayon::strip_style(format(tmspn)))
  expect_equal(fmt, "NA")
})

Try the parttime package in your browser

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

parttime documentation built on May 29, 2024, 6:25 a.m.