tests/testthat/test-function-hsDateStr.R

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

test_that("hsDateStr() works", {

  kwb.datetime:::hsDateStr(tstamp = as.POSIXct("2018-06-03 23:50:00"))
   expect_error(
    kwb.datetime:::hsDateStr(tstamp = 1)
    # invalid 'trim' argument
  )

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