tests/testthat/test-get_idd_periods.R

idd_periods <- get_idd_periods(min_date = "1994-01-01",
                                max_date = "2010-12-31")


test_that("get_idd_periods works", {
  expect_equal(min(idd_periods$start_date), as.Date("1994-01-01"))
})

test_that("get_idd_periods works", {
  expect_equal(max(idd_periods$end_date), as.Date("2010-12-31"))
})

Try the farr package in your browser

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

farr documentation built on Feb. 16, 2023, 8:11 p.m.