tests/testthat/test-function-current_year.R

test_that("current_year() works", {

  f <- kwb.prep:::current_year
  
  expect_identical(f(), as.integer(format(Sys.Date(), "%Y")))
})
KWB-R/kwb.prep documentation built on June 11, 2022, 1:29 p.m.