tests/testthat/test-is_date.R

test_that("is_date works", {
  expect_equal(is_date(Sys.Date()), TRUE)
})

test_that("is_date works", {
  expect_equal(is_date("Sys.Date()"), FALSE)
})

Try the standardlastprofile package in your browser

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

standardlastprofile documentation built on May 29, 2024, 2:54 a.m.