tests/testthat/test-function-utc_offset_Berlin_time.R

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

test_that("utcOffsetBerlinTime() works", {

  kwb.datetime::utcOffsetBerlinTime(timestamps = as.POSIXct("2018-06-03 23:50:00"))
   expect_error(
    kwb.datetime::utcOffsetBerlinTime(timestamps = 1)
    # all(hasTimeFormat(timestamps, "%Y-%m-%d %H:%M:%S")) is not TRUE
  )

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