tests/testthat/test-function-timeFormatToRegex.R

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

test_that("timeFormatToRegex() works", {

  kwb.datetime:::timeFormatToRegex(timeformat = 1)
   kwb.datetime:::timeFormatToRegex(timeformat = 1:2)
   kwb.datetime:::timeFormatToRegex(timeformat = "a")
   kwb.datetime:::timeFormatToRegex(timeformat = c("a", "b"))
   kwb.datetime:::timeFormatToRegex(timeformat = TRUE)
   kwb.datetime:::timeFormatToRegex(timeformat = FALSE)
   kwb.datetime:::timeFormatToRegex(timeformat = as.POSIXct("2018-06-03 23:50:00"))
   kwb.datetime:::timeFormatToRegex(timeformat = list(key = c("a", "b"), value = 1:2))

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