tests/testthat/test-s3-yearmon.R

test_that("yearmon", {
  expect_snapshot({
    x <- zoo::as.yearmon("2007-12")
    construct(x)
    construct(x, opts_yearmon("yearmon"))
  })
})

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.