tests/testthat/test-utils_is_time.R

test_that("`utils_is_time()` works", {

  expect_equal(utils_is_time(x = c("2024-01-01", "2024-02-01")), FALSE)

  expect_equal(utils_is_time(x = utils_as_time(x = c("2024-01-01", "2024-02-01"))), TRUE)

})

Try the distantia package in your browser

Any scripts or data that you put into this service are public.

distantia documentation built on April 4, 2025, 5:42 a.m.