tests/testthat/test-s3-difftime.R

test_that("difftime", {
  expect_snapshot({
    construct(as.difftime(1, units = "secs"))
    construct(as.difftime(2, units = "mins"))
  })
})

Try the constructive package in your browser

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

constructive documentation built on April 3, 2025, 9:39 p.m.