tests/testthat/test-Y-microbenchmark.R

context("microbenchmark")
test_that("microbenchmark test for simtimer package.", {
  # skip("Skip for development of tests")
  skip_on_cran()
  t1 <- summary(microbenchmark::microbenchmark(
    sim_wday(24*60*60, origin_date),
    times = 10L, unit = "us"))$uq
  expect_equal(t1 < t_500us, T)
})

Try the simtimer package in your browser

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

simtimer documentation built on May 2, 2019, 2:26 p.m.