tests/testthat/test-test-utils.R

# computing ecdf ------------------------------------------------------------

test_that("ecdf computed as cumulative sum", {
  expect_equal(compute_ecdf(c(1:3)), c(1, 3, 6))
})

Try the dupiR package in your browser

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

dupiR documentation built on May 29, 2024, 1:21 a.m.