tests/testthat/test_y2d.R

test_that("y2d converts correctly", {
  expect_true(y2d(1) == 365)
  # we should have a number of leap years in a 1000 years
  expect_true(y2d(1000) > 365 * 1000)
})

Try the tidysdm package in your browser

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

tidysdm documentation built on April 3, 2025, 9:56 p.m.