tests/testthat/test-roman.R

test_that("roman", {
  expect_equal(roman_date(2025, 5, 1, 13, FALSE), as_roman("2025-05-02"))
  expect_error(roman_date(2025, 13, 1))
  expect_equal(as_roman("1990-02-21"), roman_date(1990, 2, 3, 6, FALSE))
})

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.