tests/testthat/test-empty.R

test_that("empty dates", {
  expect_no_error(afrench_date())
  expect_no_error(apersian_date())
  expect_no_error(armenian_date())
  expect_no_error(babylonian_date())
  expect_no_error(bahai_date())
  expect_no_error(balinese_date())
  expect_no_error(chinese_date())
  expect_no_error(coptic_date())
  expect_no_error(egyptian_date())
  expect_no_error(french_date())
  expect_no_error(gregorian_date())
  expect_no_error(hebrew_date())
  expect_no_error(icelandic_date())
  expect_no_error(iso_date())
  expect_no_error(japanese_date())
  expect_no_error(julian_date())
  expect_no_error(korean_date())
  expect_no_error(mayan_date())
  expect_no_error(ohebrew_date())
  expect_no_error(oislamic_date())
  expect_no_error(old_hindu_lunar_date())
  expect_no_error(old_hindu_solar_date())
  expect_no_error(persian_date())
  expect_no_error(roman_date())
  expect_no_error(samaritan_date())
  expect_no_error(saudi_date())
  expect_no_error(tibetan_date())
  expect_no_error(vietnamese_date())
})

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.