tests/testthat/test_reset.R

test_that("Check reset method", {
  testthat::expect_no_error(times <- test_reset())

  expect_equal(row.names(times[[1]]), c("t1", "t2"))
  expect_equal(row.names(times[[2]]), c("t3"))
})

Try the rcpptimer package in your browser

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

rcpptimer documentation built on Sept. 30, 2024, 9:30 a.m.