tests/testthat/test-dates.R

test_that("dates increment properly", {
  expect_equal(advdate("2020-09-14", 2), "(21 Sep)")
  expect_equal(advdate("2020-09-14", 4), "(5 Oct)")
})

Try the iheiddown package in your browser

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

iheiddown documentation built on Nov. 10, 2022, 5:52 p.m.