tests/testthat/test-s3-clock_year_month_weekday.R

test_that("clock_year_month_weekday", {
  skip_if_not_installed("clock")
  expect_snapshot({
    construct(clock::year_month_weekday(2024, 1, clock::clock_weekdays$tuesday, 2))
    construct(clock::year_month_weekday(2024, 1:2, c(3, NA), 2, 12, 30))
    construct(clock::year_month_weekday(2024, 1))
    construct(clock::year_month_weekday(2024, 1, 3, 2), opts_clock_year_month_weekday("next"))
    construct(clock::year_month_weekday(2024, 1, 3, 2), opts_clock_year_month_weekday("list"))
  })
})

Try the constructive package in your browser

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

constructive documentation built on Oct. 22, 2026, 5:07 p.m.