tests/testthat/test-function-reformatTimestamp.R

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

test_that("reformatTimestamp() works", {

  kwb.datetime:::reformatTimestamp(x = "a")
   kwb.datetime:::reformatTimestamp(x = c("a", "b"))
   expect_error(
    kwb.datetime:::reformatTimestamp(x = 1)
    # is.character(x) is not TRUE
  )

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