tests/testthat/test-function-intervalKey.R

#
# This test file has been generated by kwb.test::create_test_files()
#

test_that("intervalKey() works", {

  expect_error(
    kwb.datetime:::intervalKey(tstamps = 1, itype = 1)
    # itype must be one of
#   'y' (year),
#   'q' (quarter in year),
#   'm' (month in year),
#   'd' (day in month in year),
#   'w' (week in year),
#   'D' (weekday in month in year),
#   'qo' (quarter only),
#   'mo' (month only),
#   'do' (day only),
#   'dm' (day in month),
#   'wo' (week only),
#   'Do' (weekday only),
#   'Dy' (weekday in year)
  )

})
KWB-R/kwb.datetime documentation built on July 9, 2021, 10:28 p.m.