#
# This test file has been generated by kwb.test::create_test_files()
#
test_that("minTimeStep() works", {
kwb.datetime:::minTimeStep(tstamps = 1:2)
kwb.datetime:::minTimeStep(tstamps = c("a", "b"))
expect_error(
kwb.datetime:::minTimeStep(tstamps = 1)
# At least two timestamps needed, tstamps has only1
)
expect_error(
kwb.datetime:::minTimeStep(tstamps = list(key = c("a", "b"), value = 1:2))
# (list) object cannot be coerced to type 'integer'
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.