tests/testthat/test-human_ts.R

test_that("Make sure timestamps really differ", {
  t1 <- human_ts()
  Sys.sleep(1)
  t2 <- human_ts()
  expect_false(isTRUE(all.equal(t1, t2)))
})

Try the OpenSpecy package in your browser

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

OpenSpecy documentation built on Nov. 26, 2023, 1:09 a.m.