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 May 13, 2022, 9:06 a.m.