tests/testthat/test-icelandic.R

test_that("icelandic", {
  expect_equal(
    icelandic_date(2025, 1, 6, 0:6) |>
      cal_icelandic$from_rd() |>
      cal_icelandic$to_rd(),
    icelandic_date(2025, 1, 6, 0:6) |> vctrs::vec_data()
  )
})

Try the calcal package in your browser

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

calcal documentation built on Feb. 25, 2026, 9:07 a.m.